Repository navigation
Issue 6566 - RI plugin failure to handle a modrdn for rename of member of multiple groups - #6567
Conversation
…tiple groups Bug description: With AM and RI plugins enabled, the rename of a user that is part of multiple groups fails with a "value exists" error. Fix description: For a modrdn the RI plugin creates a new DN, before a modify is attempted check if the new DN already exists in the attr being updated. Fixes: 389ds#6566 Reviewed by:
tbordaz
left a comment
There was a problem hiding this comment.
Although the fix looks good to me I have a doubt.
The block deletes the value of the oldDN and add the value of the newDN.
In short the fix skips the block if the newDN value exists. I have a doubt about not removing the oldDN, I wonder if in some cases the oldDN may remain in the entry.
Would it be possible to catch LDAP_TYPE_OR_VALUE_EXISTS and XXX in _do_modify (where XXX is the RC when the modify does not find the value to delete)
| slapi_log_err(SLAPI_LOG_PLUGIN, REFERINT_PLUGIN_SUBSYSTEM, | ||
| "_update_all_per_mod - Duplicate DN update detected, ignoring %s\n", newDN); | ||
| bv = (struct berval){0}; | ||
| goto bail; |
There was a problem hiding this comment.
you need to call slapi_ch_free_string(&newDN) before going to 'bail'
Yes, you are correct. With this change we are exiting before the delete of the oldDN is done. Let me change this. |
…r of multiple groups (#6567) Bug description: With AM and RI plugins enabled, the rename of a user that is part of multiple groups fails with a "value exists" error. Fix description: For a modrdn the RI plugin creates a new DN, before a modify is attempted check if the new DN already exists in the attr being updated. Fixes: #6566 Reviewed by: @progier389 , @tbordaz (Thank you)
…r of multiple groups (#6567) Bug description: With AM and RI plugins enabled, the rename of a user that is part of multiple groups fails with a "value exists" error. Fix description: For a modrdn the RI plugin creates a new DN, before a modify is attempted check if the new DN already exists in the attr being updated. Fixes: #6566 Reviewed by: @progier389 , @tbordaz (Thank you)
…r of multiple groups (#6567) Bug description: With AM and RI plugins enabled, the rename of a user that is part of multiple groups fails with a "value exists" error. Fix description: For a modrdn the RI plugin creates a new DN, before a modify is attempted check if the new DN already exists in the attr being updated. Fixes: #6566 Reviewed by: @progier389 , @tbordaz (Thank you)
…r of multiple groups (#6567) Bug description: With AM and RI plugins enabled, the rename of a user that is part of multiple groups fails with a "value exists" error. Fix description: For a modrdn the RI plugin creates a new DN, before a modify is attempted check if the new DN already exists in the attr being updated. Fixes: #6566 Reviewed by: @progier389 , @tbordaz (Thank you)
…r of multiple groups (#6567) Bug description: With AM and RI plugins enabled, the rename of a user that is part of multiple groups fails with a "value exists" error. Fix description: For a modrdn the RI plugin creates a new DN, before a modify is attempted check if the new DN already exists in the attr being updated. Fixes: #6566 Reviewed by: @progier389 , @tbordaz (Thank you)
…r of multiple groups (#6567) Bug description: With AM and RI plugins enabled, the rename of a user that is part of multiple groups fails with a "value exists" error. Fix description: For a modrdn the RI plugin creates a new DN, before a modify is attempted check if the new DN already exists in the attr being updated. Fixes: #6566 Reviewed by: @progier389 , @tbordaz (Thank you)
…r of multiple groups (#6567) Bug description: With AM and RI plugins enabled, the rename of a user that is part of multiple groups fails with a "value exists" error. Fix description: For a modrdn the RI plugin creates a new DN, before a modify is attempted check if the new DN already exists in the attr being updated. Fixes: #6566 Reviewed by: @progier389 , @tbordaz (Thank you)
…r of multiple groups (#6567) Bug description: With AM and RI plugins enabled, the rename of a user that is part of multiple groups fails with a "value exists" error. Fix description: For a modrdn the RI plugin creates a new DN, before a modify is attempted check if the new DN already exists in the attr being updated. Fixes: #6566 Reviewed by: @progier389 , @tbordaz (Thank you)
…r of multiple groups (#6567) Bug description: With AM and RI plugins enabled, the rename of a user that is part of multiple groups fails with a "value exists" error. Fix description: For a modrdn the RI plugin creates a new DN, before a modify is attempted check if the new DN already exists in the attr being updated. Fixes: #6566 Reviewed by: @progier389 , @tbordaz (Thank you)
…r of multiple groups (#6567) Bug description: With AM and RI plugins enabled, the rename of a user that is part of multiple groups fails with a "value exists" error. Fix description: For a modrdn the RI plugin creates a new DN, before a modify is attempted check if the new DN already exists in the attr being updated. Fixes: #6566 Reviewed by: @progier389 , @tbordaz (Thank you)
Bug description:
With AM and RI plugins enabled, the rename of a user that is part of multiple groups fails with a "value exists" error.
Fix description:
For a modrdn the RI plugin creates a new DN, before a modify is attempted check if the new DN already exists in the attr being updated.
Fixes: #6566
Reviewed by: