Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use Net::LDAP search and can not get return result

Status
Not open for further replies.

ken038

Programmer
Nov 21, 2002
3
US
I'm trying to use Net::LDAP search function to query a LDAP database entry. Here is the routine I'm using

$mesg = $ldap->search (
base => "DC=addev, DC=verio, DC=net",
scope => "sub",
filter => "(&(OU=Applications))",
attrs => ['canonicalName']
);

Here is what the LDAP tree looks like in Windows ADSI Edit:
-DC=addev, DC=verio, DC=net
+OU=Applications
+OU=Others

My problem is the the result array size(@entries = $mesg->all_entries;) is always 0, which means no return record. I'm using the correct base and filter? Can anybody provide insight?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top