mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#8859 Record the correct RDN
This commit is contained in:
parent
d4df939b95
commit
1f2caff7b9
@ -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... */
|
||||
|
Loading…
Reference in New Issue
Block a user