On Wed, March 21, 2007 8:16 am, [EMAIL PROTECTED] wrote:
> Hello everyone,
>
> I received the error message below while running my script which utilizes
> Net::LDAP.
> Could anyone explain what the error means and is there a way to make the
> message a little more understandable, such as re-wording the error
> message?
>
> Thanks
>
>
> Error code: "19"
> Error message: "Attribute Uniqueness Constraint Violation"

I am guessing you got the description above by calling $mesg->error ?

If so, this defaults to returning the error message text as returned by
the server. So we have no control over that.

You could

use Net::LDAP::Util qw(ldap_error_text);
print ldap_error_text($mesg->code);

Which will print the desciprion you see in the Net::LDAP::Constant POD for
error code 19, see http://search.cpan.org/perldoc?Net::LDAP::Constant

Graham.



Reply via email to