mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch '1512-lost-ldap-login-attr-dev' into 'develop'
Added lost parameter See merge request artica/pandorafms!991
This commit is contained in:
commit
37de48111c
@ -696,7 +696,7 @@ function ldap_process_user_login ($login, $password) {
|
||||
$dc = $config["ldap_base_dn"];
|
||||
|
||||
#Search group of this user it belong.
|
||||
$filter="(cn=" . io_safe_output($login) . ")";
|
||||
$filter="(" . $config['ldap_login_attr'] . io_safe_output($login) . ")";
|
||||
$justthese = array("objectclass=group");
|
||||
|
||||
$sr = ldap_search($ds, $dc, $filter, $justthese);
|
||||
|
Loading…
x
Reference in New Issue
Block a user