public function __construct() { parent::__construct(); $this->setTranslatableProperties(); if ($servers = ldap_servers_get_servers(NULL, 'enabled')) { foreach ($servers as $sid => $ldap_server) { $enabled = $ldap_server->status ? 'Enabled' : 'Disabled'; $this->drupalAcctProvisionServerOptions[$sid] = $ldap_server->name . ' (' . $ldap_server->address . ') Status: ' . $enabled; $this->ldapEntryProvisionServerOptions[$sid] = $ldap_server->name . ' (' . $ldap_server->address . ') Status: ' . $enabled; } } $this->drupalAcctProvisionServerOptions['none'] = t('None'); $this->ldapEntryProvisionServerOptions['none'] = t('None'); }
public function __construct() { parent::__construct(); $this->setTranslatableProperties(); if ($servers = ldap_servers_get_servers(NULL, 'enabled')) { $this->drupalAcctProvisionServerOptions[LDAP_USER_AUTH_SERVER_SID] = t('Use server which performed the authentication. Useful for multi-domain environments.'); foreach ($servers as $sid => $ldap_server) { $enabled = $ldap_server->status ? 'Enabled' : 'Disabled'; $this->drupalAcctProvisionServerOptions[$sid] = $ldap_server->name . ' (' . $ldap_server->address . ') Status: ' . $enabled; $this->ldapEntryProvisionServerOptions[$sid] = $ldap_server->name . ' (' . $ldap_server->address . ') Status: ' . $enabled; } } $this->drupalAcctProvisionServerOptions['none'] = t('None'); $this->ldapEntryProvisionServerOptions['none'] = t('None'); }