On 30 Jan 2009, at 22:57, Ismael Lezcano wrote:
Hello, new poster, all noob disclaimers apply. I'm trying to write script that will be a concept for other scripts. I want to connect to Active Directory and have the script intelligently decipher the configuration naming context to thereafter poll for other values. However it seems that I can't retrieve configurationNamingContext from the Root DSE. When I itemize the attributes for the Root DSE, the following are available: subschemaSubentry namingContexts supportedControl supportedLDAPVersion supportedSASLMechanisms supportedExtension These are nice, but not what I'm looking for.
You can ask for non-standard attributes from the root too:
my $dse = $ldap->root_dse();
my $dse = $ldap->root_dse(attrs => qw(configurationNamingContext namingContexts));
This is a documented bit of the API. Does calling that return anything from your AD?
Cheers, Chris