LdapTools\Connection\LdapConnection::getLdapUrl PHP Method

getLdapUrl() protected method

Get the LDAP URL to connect to.
protected getLdapUrl ( null | string $server = null ) : string[]
$server null | string
return string[]
    protected function getLdapUrl($server = null)
    {
        $server = $server ?: $this->serverPool->getServer();
        $ldapUrl = ($this->config->getUseSsl() ? 'ldaps' : 'ldap') . '://' . $server . ':' . $this->config->getPort();
        return [$ldapUrl, $server];
    }