Net::LDAP search of a DN
Brian Gaber <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.ldap |
|---|---|
| Message-ID | <37CAD44053C7CA4EA6E242DF34594A63090EDA4770@MB-NCR-128.ad.pwgsc-tpsgc.gc.ca> |
This dn search of dn=cn=name,o=org works from a command line and returns all the attributes of the dn:
ldapsearch -h host -x -b "cn=name,o=org"
However, this Net::LDAP does not return anything:
$mesg = $ldap->search(base=>"cn=name,o=org");
I have also tried:
$mesg = $ldap->search(
base =>"cn=name,o=org",
scope => 'base'
);