]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/schemaparse.c
Extend checks to substrings rules. Need to kludge around
[openldap] / servers / slapd / schemaparse.c
index c3e8f0b6a69d80af83a6fd352fcecc6b5ebdbe86..cb5fca8f82d05f7f792ed66f1593ad4f05594dfc 100644 (file)
@@ -25,18 +25,19 @@ 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",
@@ -47,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];