function ldap_authorization_user_login in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_authorization/ldap_authorization.module \ldap_authorization_user_login()
- 7 ldap_authorization/ldap_authorization.module \ldap_authorization_user_login()
Implements hook_user_login() login operation.
File
- ldap_authorization/
ldap_authorization.module, line 89 - Ldap authorization module.
Code
function ldap_authorization_user_login(&$edit, $user) {
list($authorizations, $notifications) = ldap_authorizations_user_authorizations($user, 'set', NULL, 'logon');
if (variable_get('ldap_help_watchdog_detail', FALSE)) {
foreach ($authorizations as $consumer_type => $authorization_ids) {
$ul = theme('item_list', [
'title' => $consumer_type,
'items' => array_keys($authorization_ids),
'type' => 'ul',
]);
watchdog('ldap_authentication', 'ldap_authorization_user_login.authorizations' . $ul, [], WATCHDOG_DEBUG);
}
}
}