There's no need to get the user record
This commit is contained in:
parent
3d96d74298
commit
a6ee501a68
1 changed files with 1 additions and 9 deletions
|
@ -114,14 +114,6 @@ class kolab_auth extends rcube_plugin
|
||||||
return $args;
|
return $args;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Find user record in LDAP
|
|
||||||
$record = $ldap->get_user_record($user, $host);
|
|
||||||
|
|
||||||
if (empty($record)) {
|
|
||||||
$args['abort'] = true;
|
|
||||||
return $args;
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($role_plugins as $role_dn => $plugins) {
|
foreach ($role_plugins as $role_dn => $plugins) {
|
||||||
$role_plugins[$ldap->parse_vars($role_dn)] => $plugins;
|
$role_plugins[$ldap->parse_vars($role_dn)] => $plugins;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue