bhikshu has asked for the wisdom of the Perl Monks concerning the following question:
The following code translation does not work when working with domain name alias. By domain name alias I mean referring to the domain "us.mydomain.com" as "mydomainus"my $rootDseQueryString = "LDAP://RootDSE"; if ("" ne $domain) { $rootDseQueryString = "LDAP://".$domain."/RootDSE"; } print $rootDseQueryString."\n"; my $RootDSE = Win32::OLE->GetObject($rootDseQueryString);
Any idea how can I achieve it? Thanks, -Neel.my $rootDseQueryString = "RootDSE"; if ("" ne $domain) { $rootDseQueryString = $domain."/RootDSE"; } print $rootDseQueryString."\n"; my $ldap_server = $rootDseQueryString; $ldap = Net::LDAP->new($ldap_server) or die $@;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using Net::LDAP
by kcott (Archbishop) on Feb 23, 2012 at 06:25 UTC | |
|
Re: using Net::LDAP
by wwe (Friar) on Feb 23, 2012 at 13:03 UTC |