LdapTools\DomainConfiguration::getPassword PHP Method

getPassword() public method

Set the password to use when binding.
public getPassword ( ) : string
return string
    public function getPassword()
    {
        return $this->config['password'];
    }

Usage Example

Esempio n. 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;
 }