Added lost parameter

This commit is contained in:
Arturo Gonzalez 2017-10-30 08:49:10 +01:00
parent 90b671de74
commit 2c3d72eedf
1 changed files with 1 additions and 1 deletions

View File

@ -696,7 +696,7 @@ function ldap_process_user_login ($login, $password) {
$dc = $config["ldap_base_dn"]; $dc = $config["ldap_base_dn"];
#Search group of this user it belong. #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"); $justthese = array("objectclass=group");
$sr = ldap_search($ds, $dc, $filter, $justthese); $sr = ldap_search($ds, $dc, $filter, $justthese);