For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > November 2007 > Net::LDAP Help Please









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Net::LDAP Help Please
awingnut

2007-11-21, 9:06 am

I'm not sure this is the right forum for this but I couldn't see where else it might fit. I am trying to use the Net::LDAP module to do a search. I am also not an LDAP expert but I have used 'ldapsearch' and know how to do what I want with that. Given the following 'ldapsearch' command:
code:
ldapsearch -x -LLL -b "dc=ldaphost,dc=mydomain,dc=com" uid


How do I do the equivalent with Net::LDAP? Here is what I have so far that return nothing:
code:
$mesg=$ldap->search( base=>"dc=ldaphost,dc=mydomain,dc=com", attrs=>["uid"]);

I can't see how to get the equivalent of the -x -LLL and -b options or if I even need them. The fact that my command returns nothing indicates I don't even have that right yet. TIA.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com