You are here

function ldapauth_userinfo_load_by_puid in LDAP integration 6

Load a ldapauth_user record by puid

Parameters

String $puid The users puid (after convertion from binary if needed).:

2 calls to ldapauth_userinfo_load_by_puid()
ldapauth_drupal_user_create in includes/ldap.core.inc
Create a new Drupal user from an LDAP user entry with checks to ensure that:
ldapauth_drupal_user_lookup in includes/ldap.core.inc
Map an LDAP user to a Drupal user account if one exists.

File

includes/ldap.core.inc, line 183
The core functions that ldapauth supplies for submodules. Will be included by default by ldapauth.

Code

function ldapauth_userinfo_load_by_puid($puid) {
  $userinfo = db_fetch_object(db_query("SELECT * FROM {ldapauth_users} WHERE puid = '%s'", $puid));
  return $userinfo;
}