/web/acc/admin/ldap.php |
---|
140,9 → 140,9 |
} |
// if ok, try to query the directory of users |
$query = $f_ldap_uid."=*"; |
$query = $f_ldap_uid.'=*'; |
$ldap_result = ldap_search($ldapconn, $f_ldap_basedn, $query); |
if (ldap_search($ldapconn, $f_ldap_basedn, $query)) { |
if ($ldap_result) { |
$ldap_users_count = ldap_count_entries($ldapconn, $ldap_result); |
return ($ldap_users_count + 2); |
} else { |