Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modrdn fails when a user is member of multiple groups #6641

Open
jchapma opened this issue Feb 28, 2025 · 0 comments · May be fixed by #6643
Open

modrdn fails when a user is member of multiple groups #6641

jchapma opened this issue Feb 28, 2025 · 0 comments · May be fixed by #6643
Labels
needs triage The issue will be triaged during scrum

Comments

@jchapma
Copy link
Contributor

jchapma commented Feb 28, 2025

Issue Description
Rename of a user that is member of multiple AM groups fail when MO and RI plugins are enabled.

Package Version and Platform:

  • Package and version: main branch

Steps to Reproduce

  1. Enable AM plugin
  2. Create definition and regex rule for users with A in the name
  3. Create definition and regex rule for users with Z in the name
  4. Enable MO plugin
  5. Enable RI plugin
  6. Create groups and users (userwitha, userwithz, userwithaz)
  7. Rename userwithaz

Expected results
Group member attributes should be updated with new rdn

Actual results
Type or value exists error generated, group member rename fails

@jchapma jchapma added the needs triage The issue will be triaged during scrum label Feb 28, 2025
jchapma added a commit to jchapma/389-ds-base that referenced this issue Feb 28, 2025
Bug description:
Rename of a user that is member of multiple AM groups fail when MO and
RI plugins are enabled.

Fix description:
MO plugin - After updating the entry member attribute, check the return
value. Retry the delete if the attr value exists and retry the add if the
attr value is missing.

RI plugin - A previous commit checked if the attr value was not present
before adding a mod. This commit was reverted in favour of overriding
the internal op return value, consistent with other plugins.

CI test from Viktor Ashirov <[email protected]>

Fixes: 389ds#6641
Relates: 389ds#6566

Reviewed by:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage The issue will be triaged during scrum
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant