LdapTools\Utilities\LdapUtilities::getLdapServersForDomain PHP Метод

getLdapServersForDomain() публичный статический Метод

Get an array of all the LDAP servers for a domain by querying DNS.
public static getLdapServersForDomain ( string $domain ) : string[]
$domain string The domain name to query.
Результат string[]
    public static function getLdapServersForDomain($domain)
    {
        $hosts = (new Dns())->getRecord(self::SRV_PREFIX . $domain, DNS_SRV);
        return is_array($hosts) ? array_column($hosts, 'target') : [];
    }