Skip to content
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 - setting user as admin (via objectclass) makes them admin forever - saves the setting into database. #1359

Closed
2 of 7 tasks
kubatyszko opened this issue Mar 21, 2017 · 6 comments · Fixed by #8849
Closed
2 of 7 tasks
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Milestone

Comments

@kubatyszko
Copy link
Contributor

kubatyszko commented Mar 21, 2017

  • 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...

@lunny lunny added this to the 1.x.x milestone Mar 22, 2017
@lunny lunny added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Mar 22, 2017
@strk
Copy link
Member

strk commented Mar 22, 2017

Same issue filed on Gogs: gogs/gogs#2855

@strk
Copy link
Member

strk commented Mar 22, 2017

Gogs PR attempting to fix it: gogs/gogs#3062
The PR is a generic SYNC method dealing with the generic LDAP sync issue reported in Gogs on gogs/gogs#1268

Maybe someone wants to complete that PR and port to Gitea ?
\cc @ptman

@strk
Copy link
Member

strk commented Mar 22, 2017

@lunny milestone should probably not be 1.x.x (1.2.0 or later, I'd think)

@DblK
Copy link
Member

DblK commented May 5, 2017

Also mentioned in the PR #1478

@ptman
Copy link
Contributor

ptman commented May 5, 2017

Btw, is it possible to determine admin-privilege using group membership instead of objectclass? There might not be a suitable objectclass and active directory and freeipa don't really recommend extending the schema

@stale
Copy link

stale bot commented Feb 14, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Feb 14, 2019
@lunny lunny added issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented and removed issue/stale labels Feb 25, 2019
@lafriks lafriks modified the milestones: 1.x.x, 1.11.0 Nov 15, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
6 participants