diff --git a/lam/lib/ldap.inc b/lam/lib/ldap.inc index 966bfe73..e82cbacd 100644 --- a/lam/lib/ldap.inc +++ b/lam/lib/ldap.inc @@ -144,7 +144,14 @@ class Ldap{ } } // add root suffix if needed - if (!in_array($suffix, $ret)) { + $found == false; + for ($i = 0; $i < sizeof($ret); $i++) { // search suffix case-intensitive + if (strtolower($suffix) == strtolower($ret[$i])) { + $found = true; + break; + } + } + if (!$found) { $ret[] = $suffix; } return $ret;