]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/init.c
Add a default case with assert() just in case.
[openldap] / servers / slapd / back-ldbm / init.c
index a8c9b31b0185c8e827d9d41512b11422b83c0657..1fe1335666f1de3fcd9f0662710ded8a981b3aca 100644 (file)
@@ -1,7 +1,7 @@
 /* init.c - initialize ldbm backend */
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 
@@ -54,7 +54,7 @@ ldbm_back_initialize(
        bi->bi_db_destroy = ldbm_back_db_destroy;
 
        bi->bi_op_bind = ldbm_back_bind;
-       bi->bi_op_unbind = ldbm_back_unbind;
+       bi->bi_op_unbind = 0;
        bi->bi_op_search = ldbm_back_search;
        bi->bi_op_compare = ldbm_back_compare;
        bi->bi_op_modify = ldbm_back_modify;
@@ -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) );