Re: [PHP] Domain Controller Discovery in PHP

2010-09-28 Thread Robert Cummings
On 10-09-28 04:03 AM, Jason wrote: > Hi Rob, > > I've checked a couple of windows machines (which I admit I had assumed you were running php on) and the ENV variable "USERDNSDOMAIN" is definitely what you need. If your php is running on linux, you'll need to find out the target windows domain s

RE: [PHP] Domain Controller Discovery in PHP

2010-09-28 Thread Jason
-Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: 27 September 2010 19:38 To: Jason Cc: 'PHP General' Subject: Re: [PHP] Domain Controller Discovery in PHP On 10-09-27 11:26 AM, Jason wrote: > Hi Rob, > > I believe you should be able to d

Re: [PHP] Domain Controller Discovery in PHP

2010-09-27 Thread Robert Cummings
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

RE: [PHP] Domain Controller Discovery in PHP

2010-09-27 Thread Jason
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. That should return one or