]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/schemaparse.c
Add dummy reference to lutil_uuidstr() for dynamically loaded back-bdb
[openldap] / servers / slapd / schemaparse.c
index 10e92f827cb260fa4a791324a507b29323094ab2..cb5fca8f82d05f7f792ed66f1593ad4f05594dfc 100644 (file)
@@ -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];