function shib_auth_load_from_authmap in Shibboleth Authentication 7.4
Same name and namespace in other branches
- 6.4 shib_auth.module \shib_auth_load_from_authmap()
Loads an authmap user object from shib_authmap.
Return value
array|null The authmap item in array if found, NULL otherwise.
1 call to shib_auth_load_from_authmap()
- shib_auth_init in ./
shib_auth.module - Creates a new user, if necessary, based on information from the handler.
File
- ./
shib_auth.module, line 482 - Drupal Shibboleth authentication module.
Code
function shib_auth_load_from_authmap($uname) {
return db_select('shib_authmap', 'c')
->fields('c')
->condition('targeted_id', $uname, '=')
->execute()
->fetchAssoc();
}