]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldap/init.c
make referrals chasing optional (default is to chase them)
[openldap] / servers / slapd / back-ldap / init.c
index b00c579d36479c0792b4d0a9f796200e84031933..08767a481123c2e4264e0c34ffd67c5a10518f20 100644 (file)
@@ -109,6 +109,9 @@ ldap_back_db_init( Backend *be )
        /* by default, use proxyAuthz control on each operation */
        li->idassert_flags = LDAP_BACK_AUTH_NONE;
 
+       /* initialize flags */
+       li->flags = LDAP_BACK_F_CHASE_REFERRALS;
+
        ldap_pvt_thread_mutex_init( &li->conn_mutex );
 
        be->be_private = li;
@@ -144,10 +147,10 @@ ldap_back_db_open( BackendDB *be )
                /* FIXME: disabled because namingContexts doesn't have
                 * a matching rule, and using an MRA filter doesn't work
                 * because the normalized assertion is compared to the 
-                * non-normalized value, which in general differ.
-                * See ITS#3406 */
+                * non-normalized value, which in general differs from
+                * the normalized one.  See ITS#3406 */
                struct berval   filter,
-                               base = BER_BVC( "cn=Databases,cn=Monitor" );
+                               base = BER_BVC( "cn=Databases," SLAPD_MONITOR );
                struct berval   vals[ 2 ];
                Attribute       a = { 0 };