You are here

function shib_auth_load_from_authmap in Shibboleth Authentication 6.4

Same name and namespace in other branches
  1. 7.4 shib_auth.module \shib_auth_load_from_authmap()

Load an authmap user object from shib_authmap

Return value

the authmap object(array) if found, null otherwise

1 call to shib_auth_load_from_authmap()
shib_auth_init in ./shib_auth.module
Create a new user based on informations from the Shibboleth handler if it's necessary or log in.

File

./shib_auth.module, line 406
Drupal Shibboleth authentication module.

Code

function shib_auth_load_from_authmap($uname) {
  $auth_map_query = db_query("SELECT * FROM {shib_authmap} WHERE targeted_id='%s'", $uname);
  return db_fetch_array($auth_map_query);
}