function ldapgroups_user in LDAP integration 6
Same name and namespace in other branches
- 5.2 ldapgroups.module \ldapgroups_user()
- 5 ldapgroups.module \ldapgroups_user()
Implements hook_user().
File
- ./
ldapgroups.module, line 77 - ldapgroups integrates ldap groups with drupal roles.
Code
function ldapgroups_user($op, &$edit, &$account, $category = NULL) {
// Only care about ldap authenticated users.
if (!isset($account->ldap_authentified)) {
return;
}
switch ($op) {
case 'login':
module_load_include('inc', 'ldapauth', 'includes/ldap.core');
module_load_include('inc', 'ldapauth', 'includes/LDAPInterface');
module_load_include('inc', 'ldapgroups', 'ldapgroups');
ldapgroups_user_login($account);
break;
}
}