public function LdapUserConf::ldapContextToProvEvents in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.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 382
Class
Code
public function ldapContextToProvEvents($ldap_context = NULL) {
switch ($ldap_context) {
case 'ldap_user_prov_to_drupal':
$result = [
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 = [
LDAP_USER_EVENT_SYNCH_TO_LDAP_ENTRY,
LDAP_USER_EVENT_CREATE_LDAP_ENTRY,
];
break;
default:
$result = ldap_user_all_events();
}
return $result;
}