Skip to content

Issue 6492/6493 - CLI - dsdim can not create nested/filtered roles - #6743

Merged
mreynolds389 merged 1 commit into
389ds:mainfrom
mreynolds389:dsidm-role-creation
Apr 14, 2025
Merged

mreynolds389 merged 1 commit into
389ds:mainfrom
mreynolds389:dsidm-role-creation

Conversation

@mreynolds389

Copy link
Copy Markdown
Contributor

Description:

Filtered role cannot be created using "dsidm role create-filtered" command, as it doesn't accept necessary attribute nsRoleFilter and fails with object class violation.

Nested role fails with an error:
DEBUG: Attribute nsRoleDN must not be None

This was caused by the case of the attirubte name, which needed to be set to all lowercase

Relates: #6493
Relates: #6492

@progier389 progier389 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the test is still failing:
dirsrvtests/tests/suites/roles/basic_test.py::test_nestedrole FAILED [ 33%]

@mreynolds389

Copy link
Copy Markdown
Contributor Author

Looks like the test is still failing: dirsrvtests/tests/suites/roles/basic_test.py::test_nestedrole FAILED [ 33%]

It passes for me, maybe the PR is not rebased?? Not sure.

@mreynolds389
mreynolds389 force-pushed the dsidm-role-creation branch 2 times, most recently from b3b9ed6 to 22fe5f2 Compare April 11, 2025 23:05
Description:

Filtered role cannot be created using "dsidm role create-filtered" command, as
it doesn't accept necessary attribute nsRoleFilter and fails with object class
violation.

Nested role fails with an error:
DEBUG: Attribute nsRoleDN must not be None

This was caused by the case of the attirubte name, which needed to be set
to all lowercase

Relates: 389ds#6493
Relates: 389ds#6492

Reviewed by: progier(Thanks!)

@progier389 progier389 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM: This time the tests results are ok:

The memberof_plugin test is known to often fails
and the replication/regression_m2c2_test.py is a known issue fixed by #6742 that need to be reviewed
replication m2_c2 is a known issue

@mreynolds389

Copy link
Copy Markdown
Contributor Author

LGTM: This time the tests results are ok:

Yeah I had missed any update to a test (it was not a rebase issue). Thanks for the review!

@mreynolds389
mreynolds389 merged commit b2162f3 into 389ds:main Apr 14, 2025
@mreynolds389
mreynolds389 deleted the dsidm-role-creation branch April 14, 2025 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants