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
$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
Thanks