See also: https://msdn.microsoft.com/en-us/library/cc223499.aspx
Author: Chad Sikorra (Chad.Sikorra@gmail.com)
Inheritance: extends LdapTools\Connection\BindUserStrategy
示例#1
0
 /**
  * {@inheritdoc}
  */
 public function connect($username = null, $password = null, $anonymous = false, $server = null)
 {
     $this->initiateLdapConnection($server);
     $username = $this->usernameFormatter->getUsername($username ?: $this->config->getUsername());
     $password = $password ?: $this->config->getPassword();
     $this->bind($username, $password, $anonymous);
     $this->lastActivity = new \DateTime();
     return $this;
 }