Handle MODRDN operations properly for indirect group members.

Without this, an entry's memberOf attribute is not updated with
the new group DN when an indirect group is renamed.

This is in bugzilla for FDS as bz 438891.
This commit is contained in:
Nathan Kinder 2008-03-26 15:03:01 -07:00
parent fd92652ace
commit 07059a5ef2

View File

@ -1175,7 +1175,17 @@ int ipamo_mod_attr_list_r(Slapi_PBlock *pb, int mod, char *group_dn, char *op_th
strncpy(dn_str, bv->bv_val, (size_t)bv->bv_len);
ipamo_modop_one_r(pb, mod, group_dn, op_this, dn_str, stack);
/* If we're doing a replace (as we would in the MODRDN case), we need
* to specify the new group DN value */
if(mod == LDAP_MOD_REPLACE)
{
ipamo_modop_one_replace_r(pb, mod, group_dn, op_this, group_dn,
dn_str, stack);
}
else
{
ipamo_modop_one_r(pb, mod, group_dn, op_this, dn_str, stack);
}
hint = slapi_attr_next_value(attr, hint, &val);
}