function hook_ldap_user_puid_alter in LDAP integration 6
Called if PUID attribute is defined but a valid LDAP user does not have this attribute (or is empty).
This is intended to allow modules to generate a PUID for new users if needed. Note that LDAPAuth will NOT write this to LDAP. The implementor will need to do this.
Parameters
String $puid The PUID (empty or null):
String $dn The user's dn:
Integer $sid The id of server the user was found on.:
2 invocations of hook_ldap_user_puid_alter()
- 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_extract_puid in includes/
ldap.core.inc - Extracts the puid value from an ldap search result with binary handling
File
- ./
ldapauth.api.php, line 76 - LDAPAuth API function documentation
Code
function hook_ldap_user_puid_alter(&$puid, $name, $dn, $sid) {
}