From: Capacio, P. J <PCA...@am...> - 2002-11-01 16:28:20
|
On Fri, Nov 01, 2002 at 09:40:33AM -0600, Capacio, Paula J wrote: >> Hi,=20 >> What's the best way to see if the BIND was successful? >> I coded... >> $ldapAsME->bind( dn =3D> $entry, password =3D> $myPWD) or die "$@"; >> ###I'm not dying when I pass a bad PWD....why ??? >> >On Friday, November 01, 2002 10:11 AM, Graham Barr wrote:=20 >Because your code is wrong. ->bind does not return a true/false result. >All methods return a message object which you must use to determine >sucess by looking at the code. > > = http://search.cpan.org/author/GBARR/perl-ldap-0.26/lib/Net/LDAP.pod#METHO= DS > Thanks Graham!=20 I do check the $mesg code on all other calls, I didn't realize it = applied to the bind as well! Thanks, my code works like a charm now! |