use central LDAP search
This commit is contained in:
parent
2277a1ff1f
commit
07434670d7
|
@ -1634,7 +1634,7 @@ class accountContainer {
|
|||
$this->module = array();
|
||||
$modules = $_SESSION['config']->get_AccountModules($this->type);
|
||||
$search = substr($dn, 0, strpos($dn, ','));
|
||||
$result = @ldap_read($_SESSION['ldap']->server(), escapeDN($dn), escapeDN($search), array(), 0, 0, 0, LDAP_DEREF_NEVER); // TODO use ldap_read()
|
||||
$result = @ldap_read($_SESSION['ldap']->server(), escapeDN($dn), escapeDN($search), array(), 0, 0, 0, LDAP_DEREF_NEVER);
|
||||
if (!$result) {
|
||||
return array(array("ERROR", _("Unable to load LDAP entry:") . " " . $dn, ldap_error($_SESSION['ldap']->server())));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue