]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8859 Enable backend configuration
authorNadezhda Ivanova <nivanova@symas.com>
Mon, 21 May 2018 14:44:41 +0000 (15:44 +0100)
committerOndřej Kuzník <ondra@openldap.org>
Fri, 19 Oct 2018 12:08:09 +0000 (13:08 +0100)
servers/slapd/bconfig.c

index 1f1647b54ac45311a7af0c3edf1fd12cacb4f8d9..bc8d112677088f6bdcc9e17ffd9557df55016add 100644 (file)
@@ -5519,6 +5519,11 @@ ok:
                if ( coptr->co_type == Cft_Database ) {
                        rc = backend_startup_one( ca->be, &ca->reply );
 
+               } else if ( coptr->co_type == Cft_Backend ) {
+                       if ( ca->bi->bi_open ) {
+                               rc = ca->bi->bi_open( ca->bi );
+                       }
+
                } else if ( coptr->co_type == Cft_Overlay ) {
                        if ( ca->bi->bi_db_open ) {
                                BackendInfo *bi_orig = ca->be->bd_info;
@@ -7227,6 +7232,10 @@ config_back_db_open( BackendDB *be, ConfigReply *cr )
                if ( !e ) {
                        return -1;
                }
+               if ( bi->bi_cf_ocs && bi->bi_cf_ocs->co_cfadd ) {
+                       rs_reinit( &rs, REP_RESULT );
+                       bi->bi_cf_ocs->co_cfadd( op, &rs, e, &c );
+               }
                i++;
        }