Skip to content

Conversation

@zddr
Copy link
Contributor

@zddr zddr commented Aug 14, 2025

pick: #54087

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
@zddr zddr requested a review from yiguolei as a code owner August 14, 2025 04:24
@hello-stephen
Copy link
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@zddr
Copy link
Contributor Author

zddr commented Aug 14, 2025

run buildall

@yiguolei yiguolei merged commit af4ad4c into apache:branch-2.1 Sep 11, 2025
20 of 21 checks passed
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.

3 participants