There's no need to get the user record

This commit is contained in:
Jeroen van Meeuwen (Kolab Systems) 2013-08-05 11:18:29 +01:00
parent 3d96d74298
commit a6ee501a68

View file

@ -87,7 +87,7 @@ class kolab_auth extends rcube_plugin
// Array( // Array(
// '<role_dn>' => Array('plugin1', 'plugin2'), // '<role_dn>' => Array('plugin1', 'plugin2'),
// ); // );
// //
// NOTE that <role_dn> may in fact be something like: 'cn=role,%dc' // NOTE that <role_dn> may in fact be something like: 'cn=role,%dc'
$role_plugins = $rcmail->config->get('kolab_auth_role_plugins'); $role_plugins = $rcmail->config->get('kolab_auth_role_plugins');
@ -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;
} }