mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#3844 fix slap_operational_subschemaSubentry
This commit is contained in:
parent
2392f9c3f6
commit
d518a76b35
@ -82,6 +82,8 @@ frontend_init( void )
|
||||
/* info */
|
||||
frontendDB->bd_info = &slap_frontendInfo;
|
||||
|
||||
SLAP_BFLAGS(frontendDB) |= SLAP_BFLAG_FRONTEND;
|
||||
|
||||
/* name */
|
||||
frontendDB->bd_info->bi_type = "frontend";
|
||||
|
||||
|
@ -27,7 +27,7 @@ slap_operational_subschemaSubentry( Backend *be )
|
||||
Attribute *a;
|
||||
|
||||
/* The backend wants to take care of it */
|
||||
if ( be && be!= frontendDB && be->be_schemadn.bv_val ) return NULL;
|
||||
if ( be && !SLAP_FRONTEND(be) && be->be_schemadn.bv_val ) return NULL;
|
||||
|
||||
a = ch_malloc( sizeof( Attribute ) );
|
||||
a->a_desc = slap_schema.si_ad_subschemaSubentry;
|
||||
|
@ -2111,6 +2111,7 @@ struct slap_backend_info {
|
||||
slap_mask_t bi_flags; /* backend flags */
|
||||
#define SLAP_BFLAG_MONITOR 0x0001U /* a monitor backend */
|
||||
#define SLAP_BFLAG_CONFIG 0x0002U /* a config backend */
|
||||
#define SLAP_BFLAG_FRONTEND 0x0004U /* the frontendD */
|
||||
#define SLAP_BFLAG_NOLASTMODCMD 0x0010U
|
||||
#define SLAP_BFLAG_INCREMENT 0x0100U
|
||||
#define SLAP_BFLAG_ALIASES 0x1000U
|
||||
@ -2121,6 +2122,7 @@ struct slap_backend_info {
|
||||
#define SLAP_BFLAGS(be) ((be)->bd_info->bi_flags)
|
||||
#define SLAP_MONITOR(be) (SLAP_BFLAGS(be) & SLAP_BFLAG_MONITOR)
|
||||
#define SLAP_CONFIG(be) (SLAP_BFLAGS(be) & SLAP_BFLAG_CONFIG)
|
||||
#define SLAP_FRONTEND(be) (SLAP_BFLAGS(be) & SLAP_BFLAG_FRONTEND)
|
||||
#define SLAP_INCREMENT(be) (SLAP_BFLAGS(be) & SLAP_BFLAG_INCREMENT)
|
||||
#define SLAP_ALIASES(be) (SLAP_BFLAGS(be) & SLAP_BFLAG_ALIASES)
|
||||
#define SLAP_REFERRALS(be) (SLAP_BFLAGS(be) & SLAP_BFLAG_REFERRALS)
|
||||
|
Loading…
Reference in New Issue
Block a user