function ldapauth_userinfo_load_by_uid in LDAP integration 6
Load a ldapauth_user record by uid
Parameters
int $uid The user's uid:
6 calls to ldapauth_userinfo_load_by_uid()
- ldapauth_authenticate in ./
ldapauth.module - Main user authentication function. Called by form validator.
- ldapauth_drupal_user_lookup in includes/
ldap.core.inc - Map an LDAP user to a Drupal user account if one exists.
- ldapauth_user in ./
ldapauth.module - Implements hook_user().
- ldapauth_user_to_local_user in ./
ldapauth.admin.inc - Page callback function to convert a user from an LDAP authenticated user to a normal drupal user.
- ldaphelp_users_list in ldaphelp/
ldaphelp.module - Generate a list of all Drupal users marked as ldap_authentified.
File
- includes/
ldap.core.inc, line 193 - The core functions that ldapauth supplies for submodules. Will be included by default by ldapauth.
Code
function ldapauth_userinfo_load_by_uid($uid) {
$userinfo = db_fetch_object(db_query("SELECT * FROM {ldapauth_users} WHERE uid = %d", $uid));
return $userinfo;
}