Yaerox has asked for the wisdom of the Perl Monks concerning the following question:
use Net::LDAP; $ldap = Net::LDAP->new( 'MY_IP.DOMAIN1.DOMAIN2.de' ) or die "$@"; $mesg = $ldap->bind ( 'dc=DOMAIN1,dc=DOMAIN1,dc=de', password => 'my_p +ass' ); $mesg = $ldap->search( # perform a search base => 'ou=Test,ou=Benutzer,ou=DOMAIN1/DOMAIN1', filter => '(sAMAccountName=*)', scope => 'subtree' ); $mesg->code && die $mesg->error; foreach $entry ($mesg->entries) { $entry->dump; } $mesg = $ldap->unbind; # take down session
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::LDAP - search result is: 000004DC: LdapErr: DSID-0C0906E8
by Yaerox (Scribe) on Jul 15, 2014 at 09:40 UTC |