summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/configuration.php3
-rw-r--r--apps/user_ldap/lib/wizard.php5
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;
}