summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/group_ldap.php11
-rw-r--r--apps/user_ldap/l10n/ast.php36
-rw-r--r--apps/user_ldap/lib/access.php4
-rw-r--r--apps/user_ldap/lib/connection.php3
-rw-r--r--apps/user_ldap/lib/proxy.php3
-rw-r--r--apps/user_ldap/lib/wizard.php4
-rw-r--r--apps/user_ldap/lib/wizardresult.php4
7 files changed, 58 insertions, 7 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php
index 40d9dec1410..3b5f377e108 100644
--- a/apps/user_ldap/group_ldap.php
+++ b/apps/user_ldap/group_ldap.php
@@ -88,6 +88,10 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
return $isInGroup;
}
+ /**
+ * @param string $dnGroup
+ * @param array|null &$seen
+ */
private function _groupMembers($dnGroup, &$seen = null) {
if ($seen === null) {
$seen = array();
@@ -163,6 +167,10 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
return $groups;
}
+ /**
+ * @param string $dn
+ * @param array|null &$seen
+ */
private function getGroupsByMember($dn, &$seen = null) {
if ($seen === null) {
$seen = array();
@@ -454,6 +462,9 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
return $allGroups;
}
+ /**
+ * @param string $group
+ */
public function groupMatchesFilter($group) {
return (strripos($group, $this->groupSearch) !== false);
}
diff --git a/apps/user_ldap/l10n/ast.php b/apps/user_ldap/l10n/ast.php
index 2c022880019..032de8aedbc 100644
--- a/apps/user_ldap/l10n/ast.php
+++ b/apps/user_ldap/l10n/ast.php
@@ -1,11 +1,41 @@
<?php
$TRANSLATIONS = array(
+"The configuration is invalid. Please have a look at the logs for further details." => "La configuración nun ye válida. Por favor, écha-y un güeyu a los rexistros pa más detalles.",
+"No action specified" => "Nun s'especificó l'aición",
+"No configuration specified" => "Nun s'especificó la configuración",
+"No data specified" => "Nun s'especificaron los datos",
+" Could not set configuration %s" => "Nun pudo afitase la configuración %s",
"Deletion failed" => "Falló'l borráu",
+"Keep settings?" => "¿Caltener los axustes?",
+"Cannot add server configuration" => "Nun pue amestase la configuración del sirvidor",
+"Success" => "Con ésitu",
"Error" => "Fallu",
-"_%s group found_::_%s groups found_" => array("",""),
-"_%s user found_::_%s users found_" => array("",""),
+"Configuration incorrect" => "Configuración incorreuta",
+"Configuration incomplete" => "Configuración incompleta",
+"Select groups" => "Esbillar grupos",
+"Select attributes" => "Esbillar atributos",
+"_%s group found_::_%s groups found_" => array("%s grupu alcontráu","%s grupos alcontraos"),
+"_%s user found_::_%s users found_" => array("%s usuariu alcontráu","%s usuarios alcontraos"),
+"Could not find the desired feature" => "Nun pudo alcontrase la carauterística deseyada",
"Save" => "Guardar",
+"groups found" => "grupos alcontraos",
+"Users login with this attribute:" => "Aniciu de sesión d'usuarios con esti atributu:",
+"LDAP Username:" => "Nome d'usuariu LDAP",
+"Other Attributes:" => "Otros atributos:",
+"Add Server Configuration" => "Amestar configuración del sirvidor",
+"Host" => "Equipu",
+"Port" => "Puertu",
"Password" => "Contraseña",
-"Continue" => "Continuar"
+"For anonymous access, leave DN and Password empty." => "Pa un accesu anónimu, dexar el DN y la contraseña baleros.",
+"users found" => "usuarios alcontraos",
+"Continue" => "Continuar",
+"Connection Settings" => "Axustes de conexón",
+"Configuration Active" => "Configuración activa",
+"When unchecked, this configuration will be skipped." => "Cuando nun tea conseñáu, saltaráse esta configuración.",
+"Disable Main Server" => "Deshabilitar sirvidor principal",
+"Turn off SSL certificate validation." => "Apagar la validación del certificáu SSL.",
+"Directory Settings" => "Axustes del direutoriu",
+"in bytes" => "en bytes",
+"Internal Username" => "Nome d'usuariu internu"
);
$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index 0b3ff4aa15e..8d622dcb794 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -948,8 +948,8 @@ class Access extends LDAPUtility {
/**
* @brief escapes (user provided) parts for LDAP filter
- * @param String $input, the provided value
- * @returns the escaped string
+ * @param string $input, the provided value
+ * @return the escaped string
*/
public function escapeFilterPart($input) {
$search = array('*', '\\', '(', ')');
diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php
index 08ac4ac626b..173c4ebcc23 100644
--- a/apps/user_ldap/lib/connection.php
+++ b/apps/user_ldap/lib/connection.php
@@ -134,6 +134,9 @@ class Connection extends LDAPUtility {
return $this->ldapConnectionRes;
}
+ /**
+ * @param string|null $key
+ */
private function getCacheKey($key) {
$prefix = 'LDAP-'.$this->configID.'-'.$this->configPrefix.'-';
if(is_null($key)) {
diff --git a/apps/user_ldap/lib/proxy.php b/apps/user_ldap/lib/proxy.php
index b27233bcd19..0eb294eb7a0 100644
--- a/apps/user_ldap/lib/proxy.php
+++ b/apps/user_ldap/lib/proxy.php
@@ -80,6 +80,9 @@ abstract class Proxy {
return $result;
}
+ /**
+ * @param string|null $key
+ */
private function getCacheKey($key) {
$prefix = 'LDAP-Proxy-';
if(is_null($key)) {
diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php
index 3854af617c1..8ddee8c760c 100644
--- a/apps/user_ldap/lib/wizard.php
+++ b/apps/user_ldap/lib/wizard.php
@@ -485,7 +485,7 @@ class Wizard extends LDAPUtility {
/**
* @brief sets the found value for the configuration key in the WizardResult
* as well as in the Configuration instance
- * @param $key the configuration key
+ * @param string $key the configuration key
* @param $value the (detected) value
* @return null
*
@@ -1000,7 +1000,7 @@ class Wizard extends LDAPUtility {
/**
* @brief appends a list of values fr
* @param $result resource, the return value from ldap_get_attributes
- * @param $attribute string, the attribute values to look for
+ * @param string $attribute the attribute values to look for
* @param &$known array, new values will be appended here
* @return int, state on of the class constants LRESULT_PROCESSED_OK,
* LRESULT_PROCESSED_INVALID or LRESULT_PROCESSED_SKIP
diff --git a/apps/user_ldap/lib/wizardresult.php b/apps/user_ldap/lib/wizardresult.php
index 542f106cad8..9e0936faa69 100644
--- a/apps/user_ldap/lib/wizardresult.php
+++ b/apps/user_ldap/lib/wizardresult.php
@@ -36,6 +36,10 @@ class WizardResult {
$this->markedChange = true;
}
+ /**
+ * @param string $key
+ * @param array|string $values
+ */
public function addOptions($key, $values) {
if(!is_array($values)) {
$values = array($values);