You are here

public function LdapServer::user_lookup in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.2 ldap_servers/LdapServer.class.php \LdapServer::user_lookup()
  2. 7 ldap_servers/LdapServer.class.php \LdapServer::user_lookup()

Parameters

mixed $user:

  • drupal user object (stdClass Object)

    • ldap entry of user (array)
    • ldap dn of user (string)
    • drupal username of user (string)

Return value

array $ldap_user_entry (with top level keys of 'dn', 'mail', 'sid' and 'attr' )

File

ldap_servers/LdapServer.class.php, line 1317
Defines server classes and related functions.

Class

LdapServer
LDAP Server Class.

Code

public function user_lookup($user) {
  return $this
    ->userUserToExistingLdapEntry($user);
}