Re: Domain Controller Discovery in PHP

From: Date: Mon, 27 Sep 2010 18:38:12 +0000
Subject: Re: Domain Controller Discovery in PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-308331@lists.php.net to get a copy of this message
On 10-09-27 11:26 AM, Jason wrote:
Hi Rob, I believe you should be able to do this with nothing more than DNS (this is how Windows clients do it). Once you have the DNS domain of the machine you're on (_SERVER["USERDNSDOMAIN"]), query for SRV records called the following: Name: _ldap._tcp.dc._msdcs.<machine domain name> That should return one or more records in the answer, each one will be the FQDN of a domain controller. Additional info from the horses mouth: http://support.microsoft.com/kb/247811
Hi Jason, Thanks for the info. I don't actually have that server field (maybe because the article is for windows 2000), but maybe I can use your info to get to the next step anyways. Cheers, Rob. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized.

« previous php.general (#308331) next »