mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-13 14:27:59 +08:00
Add system schema flags to backends supporting system schema.
This commit is contained in:
parent
f402762f9a
commit
f57057ee01
@ -64,6 +64,11 @@ bdb_db_init( BackendDB *be )
|
||||
"bdb_db_init: Initializing BDB database\n",
|
||||
0, 0, 0 );
|
||||
|
||||
/* indicate system schema supported */
|
||||
be->be_flags |= SLAP_BFLAG_ALIASES
|
||||
| SLAP_BFLAG_REFERRALS
|
||||
| SLAP_BFLAG_SUBENTRIES;
|
||||
|
||||
/* allocate backend-database-specific stuff */
|
||||
bdb = (struct bdb_info *) ch_calloc( 1, sizeof(struct bdb_info) );
|
||||
|
||||
|
@ -126,6 +126,9 @@ ldbm_back_db_init(
|
||||
{
|
||||
struct ldbminfo *li;
|
||||
|
||||
/* indicate system schema supported */
|
||||
be->be_flags |= SLAP_BFLAG_ALIASES|SLAP_BFLAG_REFERRALS;
|
||||
|
||||
/* allocate backend-database-specific stuff */
|
||||
li = (struct ldbminfo *) ch_calloc( 1, sizeof(struct ldbminfo) );
|
||||
|
||||
|
@ -238,6 +238,9 @@ monitor_back_db_init(
|
||||
}
|
||||
be_monitor = be;
|
||||
|
||||
/* indicate system schema supported */
|
||||
be->be_flags |= SLAP_BFLAG_MONITOR;
|
||||
|
||||
ndn = NULL;
|
||||
dn.bv_val = SLAPD_MONITOR_DN;
|
||||
dn.bv_len = sizeof( SLAPD_MONITOR_DN ) - 1;
|
||||
|
@ -1025,13 +1025,13 @@ struct slap_backend_db {
|
||||
#define SLAP_BFLAG_ALIASES 0x0100U
|
||||
#define SLAP_BFLAG_REFERRALS 0x0200U
|
||||
#define SLAP_BFLAG_SUBENTRIES 0x0400U
|
||||
#define SLAP_BFLAG_NOMONITOR 0x1000U
|
||||
#define SLAP_BFLAG_MONITOR 0x1000U
|
||||
slap_mask_t be_flags;
|
||||
#define SLAP_LASTMOD(be) (!((be)->be_flags & SLAP_BFLAG_NOLASTMOD))
|
||||
#define SLAP_ALIASES(be) ((be)->be_flags & SLAP_BFLAG_ALIASES)
|
||||
#define SLAP_REFERRALS(be) ((be)->be_flags & SLAP_BFLAG_REFERRALS)
|
||||
#define SLAP_SUBENTRIES(be) ((be)->be_flags & SLAP_BFLAG_SUBENTRIES)
|
||||
#define SLAP_MONITOR(be) (!(be)->be_flags & SLAP_BFLAG_NOMONITOR))
|
||||
#define SLAP_MONITOR(be) ((be)->be_flags & SLAP_BFLAG_MONITOR)
|
||||
|
||||
slap_mask_t be_restrictops; /* restriction operations */
|
||||
#define SLAP_RESTRICT_OP_ADD 0x0001U
|
||||
|
Loading…
x
Reference in New Issue
Block a user