getUseSsl() public method

Whether SSL will be used for the connection or not.
public getUseSsl ( ) : boolean
return boolean
Exemplo n.º 1
0
 /**
  * Get the LDAP URL to connect to.
  *
  * @param null|string $server
  * @return string[]
  * @throws LdapConnectionException
  */
 protected function getLdapUrl($server = null)
 {
     $server = $server ?: $this->serverPool->getServer();
     $ldapUrl = ($this->config->getUseSsl() ? 'ldaps' : 'ldap') . '://' . $server . ':' . $this->config->getPort();
     return [$ldapUrl, $server];
 }