mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
no schema checking patch for proxy cache (apurva)
This commit is contained in:
parent
aa8ff20012
commit
d06d4d33a8
@ -112,6 +112,7 @@ meta_back_cache_config(
|
||||
cache_suffix = be->be_nsuffix[0];
|
||||
}
|
||||
li->glue_be = select_backend( &cache_suffix, 0, 1 );
|
||||
li->glue_be->be_flags |= SLAP_BFLAG_NO_SCHEMA_CHECK;
|
||||
if ( cache_suffix.bv_val != be->be_nsuffix[0].bv_val ) {
|
||||
ch_free( cache_suffix.bv_val );
|
||||
}
|
||||
|
@ -56,6 +56,10 @@ entry_schema_check(
|
||||
int subentry = is_entry_subentry( e );
|
||||
int collectiveSubentry = 0;
|
||||
|
||||
if ( SLAP_NO_SCHEMA_CHECK( be )) {
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
if( subentry ) {
|
||||
collectiveSubentry = is_entry_collectiveAttributeSubentry( e );
|
||||
}
|
||||
|
@ -1395,7 +1395,7 @@ struct slap_backend_db {
|
||||
#define SLAP_BFLAG_DYNAMIC 0x8000U
|
||||
slap_mask_t be_flags;
|
||||
#define SLAP_LASTMOD(be) (!((be)->be_flags & SLAP_BFLAG_NOLASTMOD))
|
||||
#define SLAP_NO_SCHEMA_CHECK (!((be)->be_flags & SLAP_BFLAG_NO_SCHEMA_CHECK))
|
||||
#define SLAP_NO_SCHEMA_CHECK(be) (((be)->be_flags & SLAP_BFLAG_NO_SCHEMA_CHECK))
|
||||
#define SLAP_GLUE_INSTANCE(be) ((be)->be_flags & SLAP_BFLAG_GLUE_INSTANCE)
|
||||
#define SLAP_GLUE_SUBORDINATE(be) \
|
||||
((be)->be_flags & SLAP_BFLAG_GLUE_SUBORDINATE)
|
||||
|
Loading…
Reference in New Issue
Block a user