From: Mark W. <mew...@un...> - 2001-01-08 22:28:16
|
Doesn't anyone read the docs anymore? :) All LDAP operations in Net::LDAP return a Net::LDAP::Message object. Inside this object is a result code. If the result code is not 0 then there has been an error (except for compare which expects 5 & 6 as True & False). You can use something like this: die("bind failed with ",$mesg->code(),"\n") if $mesg->code(); if you read the docs for Net::LDAP::Util you'll see how to get a human readable string from such an error code. Mark Shain Miley wrote: > Hi all, > I am almost finished in my quest to authenticate with perl-ldap...one > last question...how can I tell if the ldap->bind failed or not. > Thanks > Shain |