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
To: PHP General Subject: [PHP] Domain Controller Discovery in PHP Hello list, Does anyone know a method in Windows Server 2003 to discover one or more domain controllers to which the machine is connected. I know as an administrator I can use dsquery and various other administrator commands, but I&

[PHP] Domain Controller Discovery in PHP

2010-09-27 Thread Robert Cummings
Hello list, Does anyone know a method in Windows Server 2003 to discover one or more domain controllers to which the machine is connected. I know as an administrator I can use dsquery and various other administrator commands, but I'm unsure how to do so within PHP from an unprivileged vantage