public function LdapUserConf::__construct in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_user/LdapUserConf.class.php \LdapUserConf::__construct()
1 call to LdapUserConf::__construct()
1 method overrides LdapUserConf::__construct()
File
- ldap_user/
LdapUserConf.class.php, line 211
Class
Code
public function __construct() {
$this
->load();
$this->provisionSidFromDirection[LDAP_USER_PROV_DIRECTION_TO_DRUPAL_USER] = $this->drupalAcctProvisionServer;
$this->provisionSidFromDirection[LDAP_USER_PROV_DIRECTION_TO_LDAP_ENTRY] = $this->ldapEntryProvisionServer;
$this->provisionsLdapEvents = [
LDAP_USER_EVENT_CREATE_LDAP_ENTRY => t('On LDAP Entry Creation'),
LDAP_USER_EVENT_SYNCH_TO_LDAP_ENTRY => t('On Synch to LDAP Entry'),
];
$this->provisionsDrupalEvents = [
LDAP_USER_EVENT_CREATE_DRUPAL_USER => t('On Drupal User Creation'),
LDAP_USER_EVENT_SYNCH_TO_DRUPAL_USER => t('On Synch to Drupal User'),
];
$this->provisionsDrupalAccountsFromLdap = $this->drupalAcctProvisionServer && $this->drupalAcctProvisionServer && count(array_filter(array_values($this->drupalAcctProvisionTriggers))) > 0;
$this->provisionsLdapEntriesFromDrupalUsers = $this->ldapEntryProvisionServer && $this->ldapEntryProvisionServer && count(array_filter(array_values($this->ldapEntryProvisionTriggers))) > 0;
$this
->setSynchMapping(TRUE);
$this->detailedWatchdog = variable_get('ldap_help_watchdog_detail', 0);
}