src/LdapTools/Connection/LdapConnection.php
protected function getLdapUrl($server = null)
    {
        $server = $server ?: $this->serverPool->getServer();
        $ldapUrl = ($this->config->getUseSsl() ? 'ldaps' : 'ldap').'://'.$server.':'.$this->config->getPort();

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

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

@param null|string $server
@return string[]
@throws LdapConnectionException
Get the LDAP URL to connect to .