ldap: an error is logged when a user is not an admin #1732

Closed
opened 2025-11-02 04:11:36 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @junkb on GitHub (Apr 26, 2018).

Description

when the ldap search is performed to determine if a user is an admin, if there is no result [meaning the user in question is not an admin], an error is logged. this is a little misleading - if there is no result, because the user is not in the admin group, then things are working exactly as they should, and there is no error. i think it would be helpful if this outcome were handled and logged differently than an error

Originally created by @junkb on GitHub (Apr 26, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.4.0 - Git version: n/a - Operating system: ubuntu 17.10 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: https://gist.github.com/junkb/b5abbf7ec4ee1f975a6a423b87c51d37 ## Description when the ldap search is performed to determine if a user is an admin, if there is no result [meaning the user in question is not an admin], an error is logged. this is a little misleading - if there is no result, because the user is not in the admin group, then things are working exactly as they should, and there is no error. i think it would be helpful if this outcome were handled and logged differently than an error
GiteaMirror added the type/bug label 2025-11-02 04:11:36 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1732