Commit 0b3e9db0 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4219 Fixed CAS login (ACL system init was missing)

parent 927a8150
......@@ -415,7 +415,7 @@ class Index {
$filter .= '('.$attr.'='.self::$username.')';
}
$ldap->search('(&(|'.$filter.')(objectClass=inetOrgPerson))');
$ldap->fetch();
$attrs = $ldap->fetch();
if ($ldap->count() < 1) {
msg_dialog::display(
_('Error'),
......@@ -437,7 +437,8 @@ class Index {
);
exit();
}
$ui = new userinfo($config, $ldap->getDn());
$ui = new userinfo($config, $attrs['dn']);
$ui->loadACL();
$success = self::runSteps(array(
'loginAndCheckExpired',
......
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