Closed
Description
- Gitea version (or commit ref): master
- Git version:
- Operating system: Linux
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist:
Description
I'm using LDAP authentication with correct user and admin objectClass filters.
When user logs in for the first time, if they match the admin filter - they are set as admin in the database forever.
I would expect it to be always dynamically controlled via LDAP - not using the value stored in DB.
I don't expect to be able to control this using admin interface -> users (that should probably have the "administrator" column greyed out.
I DO see that upon each login the value is being checked with ldap - but not used...