public function LdapUserConf::ldapContextToProvEvents in Lightweight Directory Access Protocol (LDAP) 8.2
Same name and namespace in other branches
- 7.2 ldap_user/LdapUserConf.class.php \LdapUserConf::ldapContextToProvEvents()
converts the more general ldap_context string to its associated ldap user event
1 call to LdapUserConf::ldapContextToProvEvents()
- LdapUserConf::getLdapUserRequiredAttributes in ldap_user/
LdapUserConf.class.php - Util to fetch attributes required for this user conf, not other modules.
File
- ldap_user/
LdapUserConf.class.php, line 347
Class
Code
public function ldapContextToProvEvents($ldap_context = NULL) {
switch ($ldap_context) {
case 'ldap_user_prov_to_drupal':
$result = array(
LDAP_USER_EVENT_SYNCH_TO_DRUPAL_USER,
LDAP_USER_EVENT_CREATE_DRUPAL_USER,
LDAP_USER_EVENT_LDAP_ASSOCIATE_DRUPAL_ACCT,
);
break;
case 'ldap_user_prov_to_ldap':
$result = array(
LDAP_USER_EVENT_SYNCH_TO_LDAP_ENTRY,
LDAP_USER_EVENT_CREATE_LDAP_ENTRY,
);
break;
default:
$result = ldap_user_all_events();
}
return $result;
}