function ldap_authorization_user_login in Lightweight Directory Access Protocol (LDAP) 8.2
Same name and namespace in other branches
- 7.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 92 - ldap authorization module
Code
function ldap_authorization_user_login(&$edit, $user) {
list($authorizations, $notifications) = ldap_authorizations_user_authorizations($user, 'set', NULL, 'logon');
if (config('ldap_help.settings')
->get('watchdog_detail')) {
foreach ($authorizations as $consumer_type => $authorization_ids) {
$ul = theme('item_list', array(
'title' => $consumer_type,
'items' => array_keys($authorization_ids),
'type' => 'ul',
));
watchdog('ldap_authentication', 'ldap_authorization_user_login.authorizations' . $ul, array(), WATCHDOG_DEBUG);
}
}
}