LdapTools\DomainConfiguration::getLdapType PHP Method

getLdapType() public method

Get the LDAP type set for this domain (ie. Active Directory, OpenLDAP, etc).
public getLdapType ( ) : string
return string
    public function getLdapType()
    {
        return $this->config['ldapType'];
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Given the LDAP type, determine the BindStrategy to use.
  *
  * @param DomainConfiguration $config
  * @return ADBindUserStrategy|BindUserStrategy
  */
 public static function getInstance(DomainConfiguration $config)
 {
     if (LdapConnection::TYPE_AD == $config->getLdapType()) {
         return new ADBindUserStrategy($config);
     } else {
         return new self($config);
     }
 }
All Usage Examples Of LdapTools\DomainConfiguration::getLdapType