On 19 Jul 2011, at 16:17, Rick Sanders wrote:
> I am trying to capture a better error description than I am getting with the
> following code:
>
> use Net::LDAP::Util qw(ldap_error_name ldap_error_text ldap_error_desc);
>
> $result = $ldap->add( $dn, attr => [ %$attrs ] );
> if ( $result->code
I am trying to capture a better error description than I am getting with
the following code:
use Net::LDAP::Util qw(ldap_error_name ldap_error_text ldap_error_desc);
$result = $ldap->add( $dn, attr => [ %$attrs ] );
if ( $result->code ) {
$error = $result->code;
$errtxt = ldap_error_name(