Add system schema flags to backends supporting system schema.

This commit is contained in:
Kurt Zeilenga 2002-01-11 18:26:17 +00:00
parent f402762f9a
commit f57057ee01
4 changed files with 13 additions and 2 deletions

View File

@ -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) );

View File

@ -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) );

View File

@ -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;

View File

@ -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