mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Again mirroring LDAMP_MOD_SOFTADD changes....
This commit is contained in:
parent
0512d17f07
commit
c5c91399ab
@ -127,6 +127,20 @@ bdb2i_back_modify_internal(
|
||||
case LDAP_MOD_REPLACE:
|
||||
err = bdb2i_replace_values( e, mod, op->o_ndn );
|
||||
break;
|
||||
|
||||
case LDAP_MOD_SOFTADD:
|
||||
/* Avoid problems in index_add_mods()
|
||||
* We need to add index if necessary.
|
||||
*/
|
||||
mod->mod_op = LDAP_MOD_ADD;
|
||||
if ( (err = bdb2i_add_values( e, mod, op->o_ndn ))
|
||||
== LDAP_TYPE_OR_VALUE_EXISTS ) {
|
||||
|
||||
err = LDAP_SUCCESS;
|
||||
mod->mod_op = LDAP_MOD_SOFTADD;
|
||||
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if ( err != LDAP_SUCCESS ) {
|
||||
|
Loading…
Reference in New Issue
Block a user