Ticket 47398 - memberOf on a user is converted to lowercase
Bug Description:
In order to compare the groups that an entry is memberof, all
entry DN is normalized. When finally we decide to add (in a target entry)
the group DN as a memberof value, we store the lowercase normalized value.
Fix Description:
We keep the processus of comparison with normalized value but at the
time we do the actual MOD on the target entry, we use the group entry
DN (normalized but not lowercase) rather that the strict normalized one.
Changes in memberof_get_groups_callback are for ADD,DEL,MOD ops
Change in memberof_modop_one_replace_r is for MODRDN of leaf entry
Change in memberof_replace_dn_from_groups is for MODRDN on group entry
When retrieving the groups that an entry is memberof, the lowercase normalized DNs
of the groups are kept in the callback_data (group_norm_vals).
Because to know if a new group is in the groups already evaluated it needs
lowercase normalized value.
https://fedorahosted.org/389/ticket/47398
Reviewed by: Noriko Hosoi (Thanks Noriko for the review and the comments. I change slightly
the fix description to take your comment into account).
Platforms tested: F17 acceptance and unit tests.
Verify that the number of call of slapi_dn_normalization_ext is identical
with/without the fix. (does not break https://fedorahosted.org/389/ticket/412)
Flag Day: no
Doc impact: no