protected function initializeLdapAuthenticationHandler() {
        $ldapSettings = $this->_passwordAuthenticationPlatformSettings;
        $ldapAuthenticationHandler = new MultiotpWrapper();
        
        $ldapAuthenticationHandler->SetLdapServerPassword($this->getCurrentPassword());
        $ldapAuthenticationHandler->SetLdapBindDn($this->getCurrentUsername());
        $ldapAuthenticationHandler->SetLdapAccountSuffix($ldapSettings['ldap_account_suffix']);
        $ldapAuthenticationHandler->SetLdapBaseDn($ldapSettings['base_dn']);
        $ldapAuthenticationHandler->SetLdapCnIdentifier($ldapSettings['cn_identifier']);
        $ldapAuthenticationHandler->SetLdapDomainControllers($ldapSettings['domain_controllers']);
        $ldapAuthenticationHandler->SetLdapGroupAttribute($ldapSettings['group_attribute']);
        $ldapAuthenticationHandler->SetLdapGroupCnIdentifier($ldapSettings['group_cn_identifier']);
        $ldapAuthenticationHandler->SetLdapServerType($ldapSettings['ldap_server_type']);
        $ldapAuthenticationHandler->SetLdapNetworkTimeout($ldapSettings['network_timeout']);
        $ldapAuthenticationHandler->SetLdapPort($ldapSettings['port']);
        $ldapAuthenticationHandler->SetLdapRecursiveGroups($ldapSettings['recursive_groups']);
        $ldapAuthenticationHandler->SetLdapTimeLimit($ldapSettings['time_limit']);
        $ldapAuthenticationHandler->SetLdapSsl($ldapSettings['use_ssl']);
        $ldapAuthenticationHandler->SetLdapCacheOn($ldapSettings['cache_support']);
        $ldapAuthenticationHandler->SetLdapCacheFolder($ldapSettings['cache_folder']);
        $ldapAuthenticationHandler->SetLdapExpiredPasswordValid($ldapSettings['expired_password_valid']);
        
        $this->ldapAuthenticationHandler = $ldapAuthenticationHandler;
    }
protected function initializeLdapAuthenticationHandler() {
        $ldapSettings = $this->_passwordAuthenticationPlatformSettings;
        $ldapAuthenticationHandler = new MultiotpWrapper();
        
        $ldapAuthenticationHandler->SetLdapServerPassword($this->getCurrentPassword());
        $ldapAuthenticationHandler->SetLdapBindDn($this->getCurrentUsername());
        $ldapAuthenticationHandler->SetLdapAccountSuffix($ldapSettings['ldap_account_suffix']);
        $ldapAuthenticationHandler->SetLdapBaseDn($ldapSettings['base_dn']);
        $ldapAuthenticationHandler->SetLdapCnIdentifier($ldapSettings['cn_identifier']);
        $ldapAuthenticationHandler->SetLdapDomainControllers($ldapSettings['domain_controllers']);
        $ldapAuthenticationHandler->SetLdapGroupAttribute($ldapSettings['group_attribute']);
        $ldapAuthenticationHandler->SetLdapGroupCnIdentifier($ldapSettings['group_cn_identifier']);
        $ldapAuthenticationHandler->SetLdapServerType($ldapSettings['ldap_server_type']);
        $ldapAuthenticationHandler->SetLdapNetworkTimeout($ldapSettings['network_timeout']);
        $ldapAuthenticationHandler->SetLdapPort($ldapSettings['port']);
        $ldapAuthenticationHandler->SetLdapRecursiveGroups($ldapSettings['recursive_groups']);
        $ldapAuthenticationHandler->SetLdapTimeLimit($ldapSettings['time_limit']);
        $ldapAuthenticationHandler->SetLdapSsl($ldapSettings['use_ssl']);
        $ldapAuthenticationHandler->SetLdapCacheOn($ldapSettings['cache_support']);
        $ldapAuthenticationHandler->SetLdapCacheFolder($ldapSettings['cache_folder']);
        $ldapAuthenticationHandler->SetLdapExpiredPasswordValid($ldapSettings['expired_password_valid']);
        
        $this->ldapAuthenticationHandler = $ldapAuthenticationHandler;
    }
protected function initializeLdapAuthenticationHandler ( ) { $ ldapSettings = $ this -> _passwordAuthenticationPlatformSettings ; $ ldapAuthenticationHandler = new MultiotpWrapper ( ) ; $ ldapAuthenticationHandler -> SetLdapServerPassword ( $ this -> getCurrentPassword ( ) ) ; $ ldapAuthenticationHandler -> SetLdapBindDn ( $ this -> getCurrentUsername ( ) ) ; $ ldapAuthenticationHandler -> SetLdapAccountSuffix ( $ ldapSettings [ 'ldap_account_suffix' ] ) ; $ ldapAuthenticationHandler -> SetLdapBaseDn ( $ ldapSettings [ 'base_dn' ] ) ; $ ldapAuthenticationHandler -> SetLdapCnIdentifier ( $ ldapSettings [ 'cn_identifier' ] ) ; $ ldapAuthenticationHandler -> SetLdapDomainControllers ( $ ldapSettings [ 'domain_controllers' ] ) ; $ ldapAuthenticationHandler -> SetLdapGroupAttribute ( $ ldapSettings [ 'group_attribute' ] ) ; $ ldapAuthenticationHandler -> SetLdapGroupCnIdentifier ( $ ldapSettings [ 'group_cn_identifier' ] ) ; $ ldapAuthenticationHandler -> SetLdapServerType ( $ ldapSettings [ 'ldap_server_type' ] ) ; $ ldapAuthenticationHandler -> SetLdapNetworkTimeout ( $ ldapSettings [ 'network_timeout' ] ) ; $ ldapAuthenticationHandler -> SetLdapPort ( $ ldapSettings [ 'port' ] ) ; $ ldapAuthenticationHandler -> SetLdapRecursiveGroups ( $ ldapSettings [ 'recursive_groups' ] ) ; $ ldapAuthenticationHandler -> SetLdapTimeLimit ( $ ldapSettings [ 'time_limit' ] ) ; $ ldapAuthenticationHandler -> SetLdapSsl ( $ ldapSettings [ 'use_ssl' ] ) ; $ ldapAuthenticationHandler -> SetLdapCacheOn ( $ ldapSettings [ 'cache_support' ] ) ; $ ldapAuthenticationHandler -> SetLdapCacheFolder ( $ ldapSettings [ 'cache_folder' ] ) ; $ ldapAuthenticationHandler -> SetLdapExpiredPasswordValid ( $ ldapSettings [ 'expired_password_valid' ] ) ; $ this -> ldapAuthenticationHandler = $ ldapAuthenticationHandler ; }
Instantiate the LDAP handler and inject appropriate settings into it

Cyril Ogana <cogana@gmail.com>
2018
Instantiate the LDAP handler and inject appropriate settings into it