In the immortal words of Peter Marschall:

> It should be possible using code like the following:
> 
> ## find PDC of an AD domain with LDAPS port ##
> # Synopsis: ($ip, $oport) = lookup_pdc($domain)
[...]
> Please note: I copied this from a posting to this(?) ML
> years ago. I cannot tell whether it will work or not.

This is my code that we ran (and are still running).  It returns the
PDC for a domain given not the Windows domain, but rather the
internet domain (e.g. "umn.edu").  You can remove the .pdc from the
DNS name in the code if any DC will do.

I expect the original poster will need to find a Windows-specific
module or function to find information about AD (hostname, ports, root 
DN) in order to access it via LDAP.  Once you have that information,
Net::LDAP is a great way to access it...

%%  Christopher A. Bongaarts  %%  [EMAIL PROTECTED]       %%
%%  Internet Services         %%  http://umn.edu/~cab  %%
%%  University of Minnesota   %%  +1 (612) 625-1809    %%

Reply via email to