]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8859 Record the correct RDN
authorOndřej Kuzník <ondra@openldap.org>
Mon, 21 May 2018 14:37:50 +0000 (15:37 +0100)
committerOndřej Kuzník <ondra@openldap.org>
Fri, 19 Oct 2018 12:08:09 +0000 (13:08 +0100)
servers/slapd/bconfig.c

index 341df0866634e60d5242eaf46bdcf3eea2ea1954..1f1647b54ac45311a7af0c3edf1fd12cacb4f8d9 100644 (file)
@@ -7200,6 +7200,7 @@ config_back_db_open( BackendDB *be, ConfigReply *cr )
         */
        
        c.line = 0;
+       i = 0;
        LDAP_STAILQ_FOREACH( bi, &backendInfo, bi_next) {
                if (!bi->bi_cf_ocs) {
                        /* If it only supports the old config mech, complain. */
@@ -7215,7 +7216,8 @@ config_back_db_open( BackendDB *be, ConfigReply *cr )
 
                rdn.bv_val = c.log;
                rdn.bv_len = snprintf(rdn.bv_val, sizeof( c.log ),
-                       "%s=%s", cfAd_backend->ad_cname.bv_val, bi->bi_type);
+                       "%s=" SLAP_X_ORDERED_FMT "%s", cfAd_backend->ad_cname.bv_val,
+                       i, bi->bi_type);
                if ( rdn.bv_len >= sizeof( c.log ) ) {
                        /* FIXME: holler ... */ ;
                }
@@ -7225,6 +7227,7 @@ config_back_db_open( BackendDB *be, ConfigReply *cr )
                if ( !e ) {
                        return -1;
                }
+               i++;
        }
 
        /* Create database nodes... */