From: Todd <net...@ch...> - 2002-11-12 19:59:47
|
You are the man! Commenting out the unbind gave me: # ldap.pl myid mypass uid=myid,ou=PROD-XYZ-VW-COM,ou=internal,ou=xyzoa,dc=xyz,dc=com Can't locate object method "shift_entry" via package "Net::LDAP::Bind" (perhaps you forgot to load "Net::LDAP::Bind"?) at E:\Inetpub\scripts\ldap.pl line 35. So I commented out the callback and presto! # ldap.pl myid mypass uid=myid,ou=PROD-XYZ-VW-COM,ou=internal,ou=xyzoa,dc=xyz,dc=com # ldap.pl myid wrongpass uid=myid,ou=PROD-XYZ-VW-COM,ou=internal,ou=xyzoa,dc=xyz,dc=com Return code: 49 Message: LDAP_INVALID_CREDENTIALS : The wrong password was supplied or the SASL credentials could not be processed MessageID: 3 DN: Thanks! -Todd On Tue, 12 Nov 2002, Chris Ridd wrote: > > One possibility is that the server doesn't like you rebinding after sending > an unbind on the connection. The socket you've got open isn't actually > closed (despite your comment!) until the $ldap object is destroyed. > > There's actually no real need to unbind at all as the standard supports > issuing multiple binds on the same connection, so maybe just delete the > $ldap->unbind call and see what happens. > > Cheers, > > Chris > |