summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-05-19 11:17:56 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-05-19 11:18:46 (GMT)
commit0307439ba1f35da48a4b85e4259606b988eac9ad (patch)
tree57c5adaffd1e70db0260cffe0be144c3ce4543a4
parent9516e7538cbeb8f02b52ed08836c7a789ae15e86 (diff)
downloadkolab-wap-kolab-webadmin-3.0.5.tar.gz
Use the correct function to test for the existence of an 'inetdomainbasedn' attribute to a domain entry (#1874)kolab-webadmin-3.0.5
-rw-r--r--lib/Auth/LDAP.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index 33f91f4..50ba40b 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -1256,7 +1256,7 @@ class LDAP extends Net_LDAP3 {
$entry_attrs = $entries[$entry_dn];
if (is_array($entry_attrs)) {
- if (in_array('inetdomainbasedn', $entry_attrs) && !empty($entry_attrs['inetdomainbasedn'])) {
+ if (array_key_exists('inetdomainbasedn', $entry_attrs) && !empty($entry_attrs['inetdomainbasedn'])) {
$domain_root_dn = $entry_attrs['inetdomainbasedn'];
}
else {