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
|
@ -87,7 +87,7 @@ class kolab_auth extends rcube_plugin
|
|||
// Array(
|
||||
// '<role_dn>' => Array('plugin1', 'plugin2'),
|
||||
// );
|
||||
//
|
||||
//
|
||||
// NOTE that <role_dn> may in fact be something like: 'cn=role,%dc'
|
||||
|
||||
$role_plugins = $rcmail->config->get('kolab_auth_role_plugins');
|
||||
|
@ -114,14 +114,6 @@ class kolab_auth extends rcube_plugin
|
|||
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) {
|
||||
$role_plugins[$ldap->parse_vars($role_dn)] => $plugins;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue