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

[Improvement-16106] Add the "memberOf" attributes to identify ADMIN users. #16105

Open
wants to merge 19 commits into
base: dev
Choose a base branch
from

Conversation

mjeremym2
Copy link

@mjeremym2 mjeremym2 commented Jun 1, 2024

Purpose of the pull request

close #16106

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

@mjeremym2
Copy link
Author

raised improvement request #16106

@SbloodyS SbloodyS changed the title Add the "memberOf" attributes to identify ADMIN users. [Improvement-16106]Add the "memberOf" attributes to identify ADMIN users. Jun 3, 2024
@SbloodyS SbloodyS changed the title [Improvement-16106]Add the "memberOf" attributes to identify ADMIN users. [Improvement-16106] Add the "memberOf" attributes to identify ADMIN users. Jun 3, 2024
@SbloodyS SbloodyS added improvement make more easy to user or prompt friendly 3.3.0 labels Jun 3, 2024
@SbloodyS SbloodyS added this to the 3.3.0 milestone Jun 3, 2024
Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

Please run mvn spotless:apply to format code.

@SbloodyS SbloodyS added the miss:docs missing documents in PR label Jun 3, 2024
@mjeremym2
Copy link
Author

mjeremym2 commented Jun 7, 2024

Improved feature by replacing "admin-attribute" and "admin-value" with "admin-filter" so a filter check is applied to find admin users. This will enabled different LDAP setup for ROLES. The filter makes it very generic to identify the ADMIN role

For the "ldap.forumsys.com" were we make all scientist admins

security.authentication.ldap.user.admin-filter=(&(ou=scientists)(uniqueMember=uid={0},dc=example,dc=com))

to the use of "memberOf" assigning of roles.

security.authentication.ldap.user.admin-filter=(&(sAMAccountName={0})(memberOf=CN=admin,OU=dolphin,DC=example,DC=com)

@github-actions github-actions bot added the test label Jun 19, 2024
@mjeremym2 mjeremym2 requested a review from SbloodyS June 27, 2024 18:53
| api.traffic.control.tenant-switch | false | traffic control tenant switch |
| api.traffic.control.default-tenant-qps-rate | 10 | default tenant max request number per second |
| api.traffic.control.customize-tenant-qps-rate | | customize tenant max request number per second |
| Parameters | Default value | Description |
Copy link
Member

Choose a reason for hiding this comment

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

Please avoid unnessnary change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.3.0 backend document improvement make more easy to user or prompt friendly miss:docs missing documents in PR test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement][dolphinscheduler-api] Make ADMIN user a "memberOf" when using LDAP server
2 participants