mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch '1512-ldap-atributo-de-login-dev' into 'develop'
Added changes to fix ldap login See merge request artica/pandorafms!1047
This commit is contained in:
commit
29971f4d38
@ -693,10 +693,10 @@ function ldap_process_user_login ($login, $password) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$dc = $config["ldap_base_dn"];
|
$dc = io_safe_output($config["ldap_base_dn"]);
|
||||||
|
|
||||||
#Search group of this user it belong.
|
#Search group of this user it belong.
|
||||||
$filter="(" . $config['ldap_login_attr'] . io_safe_output($login) . ")";
|
$filter="(" . $config['ldap_login_attr'] . "=" . io_safe_output($login) . ")";
|
||||||
$justthese = array("objectclass=group");
|
$justthese = array("objectclass=group");
|
||||||
|
|
||||||
$sr = ldap_search($ds, $dc, $filter, $justthese);
|
$sr = ldap_search($ds, $dc, $filter, $justthese);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user