You are here

private function LdapEntryProvisionSubscriber::loadServer in Lightweight Directory Access Protocol (LDAP) 8.4

Load provisioning server from database.

3 calls to LdapEntryProvisionSubscriber::loadServer()
LdapEntryProvisionSubscriber::login in ldap_user/src/EventSubscriber/LdapEntryProvisionSubscriber.php
Handle account login with LDAP entry provisioning.
LdapEntryProvisionSubscriber::userCreated in ldap_user/src/EventSubscriber/LdapEntryProvisionSubscriber.php
Create or update LDAP entries on user creation.
LdapEntryProvisionSubscriber::userUpdated in ldap_user/src/EventSubscriber/LdapEntryProvisionSubscriber.php
Create or update LDAP entries on user update.

File

ldap_user/src/EventSubscriber/LdapEntryProvisionSubscriber.php, line 467

Class

LdapEntryProvisionSubscriber
Event subscribers for creating and updating LDAP entries.

Namespace

Drupal\ldap_user\EventSubscriber

Code

private function loadServer() : void {
  $this->ldapServer = $this->entityTypeManager
    ->getStorage('ldap_server')
    ->load($this->config
    ->get('ldapEntryProvisionServer'));
  $this->ldapUserManager
    ->setServer($this->ldapServer);
}