Commit 9c77dcf5 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3397 Refuses users if ppolicy is activated and they can’t search the base

parent a593d18e
......@@ -709,6 +709,12 @@ function ldap_login_user ($username, $password)
if (!$ldap->success()) {
return NULL;
}
if (class_available('ppolicyAccount')) {
$ldap->ls('(objectClass=*)', $config->current['BASE']);
if (!$ldap->success()) {
return NULL;
}
}
/* Username is set, load subtreeACL's now */
$ui->loadACL();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment