X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fschemaparse.c;h=cb5fca8f82d05f7f792ed66f1593ad4f05594dfc;hb=9ba829436e33d42f918f377a7b636869f7a9c371;hp=10e92f827cb260fa4a791324a507b29323094ab2;hpb=55e925abe63b49cdf6a5ddcd88240b2259eb7dc1;p=openldap diff --git a/servers/slapd/schemaparse.c b/servers/slapd/schemaparse.c index 10e92f827c..cb5fca8f82 100644 --- a/servers/slapd/schemaparse.c +++ b/servers/slapd/schemaparse.c @@ -22,20 +22,22 @@ static void oc_usage(void); static void at_usage(void); static char *const err2text[] = { + "Success", "Out of memory", "ObjectClass not found", - "ObjectClass inappropriate SUPerior", - "ObjectClass operational", + "user-defined ObjectClass includes operational attributes", + "user-defined ObjectClass has inappropriate SUPerior", "Duplicate objectClass", "AttributeType not found", + "AttributeType inappropriate matching rule", "AttributeType inappropriate USAGE", "AttributeType inappropriate SUPerior", "AttributeType SYNTAX or SUPerior required", "Duplicate attributeType", "MatchingRule not found", + "MatchingRule incomplete", "Duplicate matchingRule", "Syntax not found", - "Syntax required", "Duplicate ldapSyntax", "OID or name required", "Qualifier not supported", @@ -46,7 +48,7 @@ static char *const err2text[] = { char * scherr2str(int code) { - if ( code < 0 || SLAP_SCHERR_LAST < code ) { + if ( code < 0 || SLAP_SCHERR_LAST <= code ) { return "Unknown error"; } else { return err2text[code];