Hi,
On Wednesday 23 July 2003 08:18, aerfx wrote:
> I bind via Net::LDAP with an username and a password. If
> the password is incorrect, NL bind default as anonymous, right?
No, this depends on the server (whether it allows operations
[like search, ...) without being bound and treating this as anonymous)
> *Is there any function to get return code to control the status.*
Try
$mesg = $ldap->bind(DN, password => PW);
if ($mesg->code() != LDAP_SUCCESS)
{
do_what_you_need_to_do_an_a_failed_bind();
}
It's documented in the man page.
Peter
--
Peter Marschall
eMail: [EMAIL PROTECTED]