mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
More OBSOLETE checks
This commit is contained in:
parent
857165b1bf
commit
5504bed852
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user