From: Kurt Zeilenga Date: Thu, 10 Oct 2002 02:38:32 +0000 (+0000) Subject: More OBSOLETE checks X-Git-Tag: NO_SLAP_OP_BLOCKS~897 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5504bed8525b369323b631955c4729b65f7b5dd5;p=openldap More OBSOLETE checks --- diff --git a/servers/slapd/schema_check.c b/servers/slapd/schema_check.c index 1fcc4ab6de..4aead7c4aa 100644 --- a/servers/slapd/schema_check.c +++ b/servers/slapd/schema_check.c @@ -310,6 +310,24 @@ entry_schema_check( "unrecognized objectClass '%s'", aoc->a_vals[i].bv_val ); +#ifdef NEW_LOGGING + LDAP_LOG( OPERATION, INFO, + "entry_schema_check: dn (%s), %s\n", e->e_dn, textbuf, 0 ); +#else + Debug( LDAP_DEBUG_ANY, + "entry_check_schema(%s): %s\n", + e->e_dn, textbuf, 0 ); +#endif + + return LDAP_OBJECT_CLASS_VIOLATION; + } + + if ( oc->soc_obsolete ) { + /* disallow obsolete classes */ + snprintf( textbuf, textlen, + "objectClass '%s' is OBSOLETE", + aoc->a_vals[i].bv_val ); + #ifdef NEW_LOGGING LDAP_LOG( OPERATION, INFO, "entry_schema_check: dn (%s), %s\n", e->e_dn, textbuf, 0 );