1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: Add error message for LDAP_OBJECT_CLASS_VIOLATION (error 65)
Author: Florian Schlichting <fsfs@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=308696
--- a/src/plugins/ldap/ldap_errors.c
+++ b/src/plugins/ldap/ldap_errors.c
@@ -82,6 +82,13 @@
"%sIt is likely that the bind DN or password should be "
"changed.\n", SPC);
break;
+ case LDAP_OBJECT_CLASS_VIOLATION: /* err = 65 */
+ fprintf (stderr,
+ "%sThe %s you are trying to %s lacks a required attribute "
+ "(or contains an attribute not defined in the schema)\n", SPC, ug, op);
+ fprintf (stderr, "%sCheck the email, firstname or lastname attributes "
+ "in particular, or adjust the schema your LDAP server uses\n", SPC);
+ break;
case LDAP_ALREADY_EXISTS: /* err = 68 */
fprintf (stderr,
"%sThe %s you are trying to %s already exists in the "
|