> I am successfully using perl-ldap-0.2701 > Net::LDAP and simply need a
> response code from a bind operation. I am accepting a username and
> password from a web page and then simply bind with those details to LDAP.
> If the result is success (0) I know the password is valid.
> I can't seem to get an error or mesg returned unless I carry out an
> operation after the bind.
$ldap->bind() returns a mesg. So checking this should be sufficient.
But be aware that an empty password means anonymous bind to ldap,
which should always succeed, so test for that before calling bind().
$mesg = $ldap->bind(sasl => $sasl);
$mesg->code() && die $mesg->error();