From: Chris R. <chr...@me...> - 2001-06-22 08:00:57
|
Graham Barr <gb...@po...> wrote: > ----- Forwarded message from Jim Dutton <ji...@ws...> > Subject: LDAPv3 annoymous bind with perl-ldap-0.22? > To: Graham Barr <gb...@po...> > MIME-Version: 1.0 > Content-Type: TEXT/plain; charset=us-ascii > > How do I go about obtaining an LDAPv3 annonymous bind with > perl-ldao-0.22? If I use "bind( version => 3)", I get an > LDAP_INAPPROPRIATE_AUTH error message and the OpenLDAP (LDAPv3) debug > trace shows an LDAPv2 bind request. If I bind with a defined DN and > password I can obtain an LDAPv3 bind, but I don't want to have to fully > authenticate just to get an LDAPv3 bind. Thank you. > > > ----- End forwarded message ----- > If you read the Net::LDAP manpage for 'bind', you should see that you need to do this: $ldap->bind(anonymous => 'ignored', version => 3); Alternatively, this should also work: $ldap = Net::LDAP->new('hostname', version => 3); $ldap->bind(); Cheers, Chris |