WhyNot87 has asked for the wisdom of the Perl Monks concerning the following question:
use Net::LDAP; $ldap = Net::LDAP->new( 'company.ldap.com' ) or die "$@"; $mesg = $ldap->bind ; # an anonymous bind $mesg = $ldap->search( # perform a search base => "ou=corp", filter => "(&(cn=Any User))" ); $mesg->code && die $mesg->error; foreach $entry ($mesg->entries) { $entry->dump; } $mesg = $ldap->unbind; # take down session
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: LDAP Connection
by ww (Archbishop) on Oct 30, 2011 at 13:44 UTC | |
by WhyNot87 (Initiate) on Oct 30, 2011 at 22:37 UTC | |
by WhyNot87 (Initiate) on Oct 30, 2011 at 22:41 UTC | |
Re: LDAP Connection
by johnny_carlos (Scribe) on Oct 30, 2011 at 16:24 UTC | |
by WhyNot87 (Initiate) on Oct 30, 2011 at 22:43 UTC | |
by WhyNot87 (Initiate) on Oct 31, 2011 at 00:46 UTC |