-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[enhance](auth)support ldap user show grants #54087
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
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
FE UT Coverage ReportIncrement line coverage |
TPC-H: Total hot run time: 34089 ms |
TPC-DS: Total hot run time: 171665 ms |
ClickBench: Total hot run time: 33.63 s |
|
run p0 |
|
run cloud_p0 |
|
run buildall |
FE UT Coverage ReportIncrement line coverage |
TPC-H: Total hot run time: 33889 ms |
TPC-DS: Total hot run time: 173214 ms |
ClickBench: Total hot run time: 33.13 s |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
run buildall |
|
run buildall |
TPC-H: Total hot run time: 33597 ms |
TPC-DS: Total hot run time: 169073 ms |
ClickBench: Total hot run time: 33.22 s |
FE UT Coverage ReportIncrement line coverage |
|
PR approved by at least one committer and no changes requested. |
The LDAP user does not exist in Doris, so a "user does not exist" prompt will appear when executing the "show grants" command. It is a reasonable requirement for users to check their own permissions after logging in. Therefore, this PR enables LDAP users to view their own permissions when executing `show grants` themselves. However, others are still unable to do so, whether by specifying a particular username or checking all users. # Conflicts: # fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ShowGrantsCommand.java # fe/fe-core/src/test/java/org/apache/doris/nereids/trees/plans/commands/ShowGrantsCommandTest.java
The LDAP user does not exist in Doris, so a "user does not exist" prompt will appear when executing the "show grants" command. It is a reasonable requirement for users to check their own permissions after logging in. Therefore, this PR enables LDAP users to view their own permissions when executing `show grants` themselves. However, others are still unable to do so, whether by specifying a particular username or checking all users. # Conflicts: # fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ShowGrantsCommand.java # fe/fe-core/src/test/java/org/apache/doris/nereids/trees/plans/commands/ShowGrantsCommandTest.java
The LDAP user does not exist in Doris, so a "user does not exist" prompt will appear when executing the "show grants" command. It is a reasonable requirement for users to check their own permissions after logging in. Therefore, this PR enables LDAP users to view their own permissions when executing `show grants` themselves. However, others are still unable to do so, whether by specifying a particular username or checking all users. # Conflicts: # fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ShowGrantsCommand.java # fe/fe-core/src/test/java/org/apache/doris/nereids/trees/plans/commands/ShowGrantsCommandTest.java
What problem does this PR solve?
The LDAP user does not exist in Doris, so a "user does not exist" prompt will appear when executing the "show grants" command.
It is a reasonable requirement for users to check their own permissions after logging in. Therefore, this PR enables LDAP users to view their own permissions when executing
show grantsthemselves. However, others are still unable to do so, whether by specifying a particular username or checking all users.Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
support ldap user show grants
Release note
support ldap user show grants
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)