diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-10-17 20:58:43 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-10-17 20:58:43 +0200 |
commit | 17010e8f587dc2e822660da342b3dc64475f8f41 (patch) | |
tree | 502fdbe3d2a4db6c368313b20a5e810343b7d9f8 /apps | |
parent | 183dd813d34f870c11bea3a97c9a6b34bc46808b (diff) | |
download | nextcloud-server-17010e8f587dc2e822660da342b3dc64475f8f41.tar.gz nextcloud-server-17010e8f587dc2e822660da342b3dc64475f8f41.zip |
Don't set Base User and Base Group when Base DN was detected, would case problems but does not provide any benefit. also make sure that empty string is saved instead of false for multiline values
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/configuration.php | 3 | ||||
-rw-r--r-- | apps/user_ldap/lib/wizard.php | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/apps/user_ldap/lib/configuration.php b/apps/user_ldap/lib/configuration.php index 460cd9e1dce..c8bf1c09482 100644 --- a/apps/user_ldap/lib/configuration.php +++ b/apps/user_ldap/lib/configuration.php @@ -243,6 +243,9 @@ class Configuration { $value = ''; } else { $value = preg_split('/\r\n|\r|\n/', $value); + if($value === false) { + $value = ''; + } } $this->setValue($varname, $value); diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php index a1d635faaea..7b7ef45af47 100644 --- a/apps/user_ldap/lib/wizard.php +++ b/apps/user_ldap/lib/wizard.php @@ -424,11 +424,8 @@ class Wizard extends LDAPUtility { $i = stripos($this->configuration->ldapAgentName, 'dc='); if($i !== false) { $base = substr($this->configuration->ldapAgentName, $i); - if($this->testBaseDN($base)) { $this->applyFind('ldap_base', $base); - $this->applyFind('ldap_base_users', $base); - $this->applyFind('ldap_base_groups', $base); return $this->result; } } @@ -445,8 +442,6 @@ class Wizard extends LDAPUtility { $base2 = implode('dc=', $dparts); if($base !== $base2 && $this->testBaseDN($base2)) { $this->applyFind('ldap_base', $base2); - $this->applyFind('ldap_base_users', $base2); - $this->applyFind('ldap_base_groups', $base2); return $this->result; } |