-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
LDAP "Admin Filter" stopped working #25985
Comments
I'm seeing ssh keys stopped working. I'm not sure if the issue reported here is specifically LDAP or a larger issue. |
I re-tested with latest 1.20.2, still the admin filter isn't working anymore. |
I've also lost admin access fwiw. |
I'm not sure on reflection my issue is quite the same, my admin user is a local account and it was marked as inactive (this may have been user error as I rarely have to use it) I did gain access again by creating a new admin user: docker exec -it gitea bash su git
gitea admin user create --username new_admin --email admin@server.com --admin --random-password |
Although you said that your LDAP service has not been changed, I still want to confirm that your LDAP service starts the |
@CaiCandong Not sure what you mean by "your LDAP service starts the |
@palto42 Can you show us the LDAP configuration of your Gitea? |
@CaiCandong Please find below the sanitized Gitea LDAP config we used: One difference I spotted in the user filter is that you used In my user record I have this entry which should be matched for the admin filter:
|
I tried with |
Can you create a new user and hopefully the result will be that he'll be an administrator the first time he logs in? I found bug #27051 while checking the related code, but I'm unsure if this relates to your question. |
@CaiCandong Can't create easily a new user (managed by different department with long approval process), I was testing the changes by running the "Synchronize external user data" from the dashboard. I have a non-LDAP admin account to ensure that I don't lose access. |
Since I'm setting the user name as |
I would like to know more about this, can I contact you via Discord? |
I have set "Username Attribute" as |
hello, same issue here after upgrading from 1.19.x to 1.20.4. Admins who were already identified did not lost their admin privilege, but new ones did not get them. |
still not working in release 1.21.0 |
Maybe #18452 will fix the issue in some cases. cf YunoHost-Apps/gitea_ynh#76 (comment) |
FWIW, I'm also seeing an issue with the LDAP admin filter (using gitea 1.21.11). It seems that the filter is being checked only upon user creation (first login). Then if the user is added to the admin group, they won't be promoted to admin and vice versa (if the user was an admin on first logon and then removed from the LDAP admin group, the admin privilege won't be revoked) |
I just upgraded to latest version 1.22.0 and the LDAP admin filter started working again :-) |
Description
After upgrading to Gitea 1.20.0 the LDAP Admin Filter stopped working and removed all LDAP based admin permissions.
The admin filter used is:
It worked in all previous Gitea versions and there hasn't been any change on the LDAP server used.
Gitea Version
1.20.0 - 1.20.4
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
nothing visible in the logs
Screenshots
No response
Git Version
2.40.1
Operating System
RHEL 7.9
How are you running Gitea?
Docker based Gitea.
Docker version 24.0.6
Database
MariaDB
mariadb Ver 15.1 Distrib 10.5.11-MariaDB,
The text was updated successfully, but these errors were encountered: