Re: Capturing LDAP error message

2011-07-19 Thread Chris Ridd
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

Capturing LDAP error message

2011-07-19 Thread Rick Sanders
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(