Home > Archive > LDAP > April 2007 > Net::LDAP Error Messages
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Net::LDAP Error Messages
|
|
| CZachary@wiley.com 2007-03-21, 7:13 pm |
| 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"
| |
| Graham Barr 2007-03-21, 7:13 pm |
| On Wed, March 21, 2007 8:16 am, CZachary@wiley.com 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.
| |
| Quanah Gibson-Mount 2007-03-21, 7:13 pm |
|
--On Wednesday, March 21, 2007 9:16 AM -0400 CZachary@wiley.com 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"
Sounds like the server is using a uniqueness constraint on the values of an
attribute. See the man page on slapo-unique if you are using OpenLDAP.
--Quanah
--
Quanah Gibson-Mount
Principal Software Developer
ITS/Shared Application Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
| |
|
|
|
|
|
|
|