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

Disable change Username and Password for LDAP users #1938

Closed
Crayon2000 opened this issue Nov 13, 2015 · 3 comments
Closed

Disable change Username and Password for LDAP users #1938

Crayon2000 opened this issue Nov 13, 2015 · 3 comments
Labels
🔨 enhancement Make it better, faster status: needs feedback Tell me more about it
Milestone

Comments

@Crayon2000
Copy link
Contributor

Hi, when a user uses LDAP authentication, he should not be able to change is Username and Password.

Advantages of not letting the user change is credetials:

  • User will use a known credential. Less chances of losing the password.
  • When a member of staff leaves you can simply disable / delete the Active Directory account but the details will still be availible in Gogs.

I'm using a Bug Tracker named Mantis. Here is the UI with LDAP enabled and disabled:
mantis-ldap

They also have a setting to force the email address from the Active Directory ($g_use_ldap_email = ON;). In Gogs this would mean to disable changing the primary e-mail. But for now, this might be a problem because the primary e-mail is not retrieved on Active Directory.

They have another setting for the user Full Name ($g_use_ldap_realname = OFF;) in case we want LDAP to mange it. In that case the Full Name would also be disabled.

@unknwon unknwon added the 🔨 enhancement Make it better, faster label Nov 13, 2015
@unknwon unknwon added this to the 0.7.x milestone Nov 13, 2015
@unknwon
Copy link
Member

unknwon commented Nov 13, 2015

Thanks your feedback!

@unknwon
Copy link
Member

unknwon commented Dec 11, 2015

Now on develop branch, non-local users are not allowed to change their password.

@unknwon
Copy link
Member

unknwon commented Dec 12, 2015

Close as implemented.

@unknwon unknwon closed this as completed Dec 12, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔨 enhancement Make it better, faster status: needs feedback Tell me more about it
Projects
None yet
Development

No branches or pull requests

2 participants