]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldap/init.c
address ITS#4332; might remove dynamicObject counting
[openldap] / servers / slapd / back-ldap / init.c
index 98e6bbb81aac85ebc0a7abd5d9047d0ba7fcb62d..77a10e78c8984185d400f530de9bf05128b48e62 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2003-2005 The OpenLDAP Foundation.
+ * Copyright 2003-2006 The OpenLDAP Foundation.
  * Portions Copyright 1999-2003 Howard Chu.
  * Portions Copyright 2000-2003 Pierangelo Masarati.
  * All rights reserved.
@@ -41,6 +41,16 @@ ldap_back_open( BackendInfo  *bi )
 int
 ldap_back_initialize( BackendInfo *bi )
 {
+       bi->bi_flags =
+#ifdef LDAP_DYNAMIC_OBJECTS
+               /* this is set because all the support a proxy has to provide
+                * is the capability to forward the refresh exop, and to
+                * pass thru entries that contain the dynamicObject class
+                * and the entryTtl attribute */
+               SLAP_BFLAG_DYNAMIC |
+#endif /* LDAP_DYNAMIC_OBJECTS */
+               0;
+
        bi->bi_open = ldap_back_open;
        bi->bi_config = 0;
        bi->bi_close = 0;
@@ -70,7 +80,7 @@ ldap_back_initialize( BackendInfo *bi )
        bi->bi_connection_init = 0;
        bi->bi_connection_destroy = ldap_back_conn_destroy;
 
-       if ( chain_init() ) {
+       if ( chain_initialize() ) {
                return -1;
        }