You are here

function hook_ldap_entry_post_provision in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.4 ldap_servers/ldap_servers.api.php \hook_ldap_entry_post_provision()
  2. 8.2 ldap_servers/ldap_servers.api.php \hook_ldap_entry_post_provision()
  3. 8.3 ldap_servers/ldap_servers.api.php \hook_ldap_entry_post_provision()

Allows modules to react to provisioning of ldap entries.

This should be invoked after provisioning ldap entries.

-- same signature as hook_ldap_entry_pre_provision_alter with ldap entries not passed by reference -- ldap entries are not queried after provisioning, so $ldap_entries are in form hook_ldap_entry_pre_provision; not actual queryied ldap entries -- if actual ldap entries are available after provisioning, they will be in $context['provisioned_ldap_entries][<dn>] => ldap entry array in format of an ldap query returned from ldap_get_entries() with 'count' keys

3 invocations of hook_ldap_entry_post_provision()
LdapServer::groupAddGroup in ldap_servers/LdapServer.class.php
NOT TESTED add a group entry.
LdapUserConf::provisionLdapEntry in ldap_user/LdapUserConf.class.php
Given a drupal account, provision an ldap entry if none exists. if one exists do nothing.
LdapUserConf::synchToLdapEntry in ldap_user/LdapUserConf.class.php
Given a drupal account, synch to related ldap entry.

File

ldap_servers/ldap_servers.api.php, line 84
Hooks provided by ldap_servers module.

Code

function hook_ldap_entry_post_provision(&$ldap_entries, $ldap_server, $context) {
}