mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-31 14:50:34 +08:00
Use LDAP_MOD_SOFTADD instead of LDAP_MOD_ADD when adding the new rdn as
an attribute to the entry. This covers the case in which the rdn value was already an attribute value for the entry in question.
This commit is contained in:
parent
0914eeefe5
commit
3b2ec6405d
@ -185,9 +185,9 @@ ldbm_back_modrdn(
|
||||
add_bv.bv_val = new_rdn_val;
|
||||
add_bv.bv_len = strlen(new_rdn_val);
|
||||
|
||||
mod[0].mod_type = old_rdn_type;
|
||||
mod[0].mod_type = new_rdn_type;
|
||||
mod[0].mod_bvalues = add_bvals;
|
||||
mod[0].mod_op = LDAP_MOD_ADD;
|
||||
mod[0].mod_op = LDAP_MOD_SOFTADD;
|
||||
mod[0].mod_next = NULL;
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user