|
|
@@ -2631,6 +2631,9 @@ void memberof_fixup_task_thread(void *arg)
|
|
|
memberof_copy_config(&configCopy, memberof_get_config());
|
|
|
memberof_unlock_config();
|
|
|
|
|
|
+ /* Mark this as a task operation */
|
|
|
+ configCopy.fixup_task = 1;
|
|
|
+
|
|
|
if (usetxn) {
|
|
|
Slapi_DN *sdn = slapi_sdn_new_dn_byref(td->dn);
|
|
|
Slapi_Backend *be = slapi_be_select(sdn);
|
|
|
@@ -2816,7 +2819,7 @@ int memberof_fix_memberof_callback(Slapi_Entry *e, void *callback_data)
|
|
|
memberof_del_dn_data del_data = {0, config->memberof_attr};
|
|
|
Slapi_ValueSet *groups = 0;
|
|
|
|
|
|
- if(!config->skip_nested){
|
|
|
+ if(!config->skip_nested || config->fixup_task){
|
|
|
/* get a list of all of the groups this user belongs to */
|
|
|
groups = memberof_get_groups(config, sdn);
|
|
|
}
|