-
-
Notifications
You must be signed in to change notification settings - Fork 784
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
Feature: Add "Authentication Method" to allow existing users to sign in with LDAP #2143
Feature: Add "Authentication Method" to allow existing users to sign in with LDAP #2143
Conversation
The "correct" thing to do would be to prompt them on first login to reset their password. We don't currently have any infrastructure setup for anything that, so probably not the best. I don't have any good ideas... I'll have to think on this for a bit
I would say let's not. Simplifies the implementation. |
One solution (maybe the easiest) is just to have it documented that if this happens, the user will need to go through the reset password flow. We could also include an option on the admin panel to generate a password reset link for a user. This could be useful for folks who don't have SMTP set up on their server, which makes the password reset functionality useless, currently. I do think that long-term, it would be better to have that prompt-on-initial-login flow. |
353cdf8
to
830281e
Compare
I agree. If we can document that somewhere and mark it as a temporary solution until we do proper password reset on login, that would be sufficient.
I think that would be ideal, I would say most users don't have SMTP enabled. I think that would be a fairly easy endpoint to implement, let me know if you want to do that as apart of this PR or in the future
Tracking in |
I've added the documentation in a new LDAP page that you'll need to reset your password.
I'll look into this soon. I think it should probably be in a different PR, that way we can get this main functionality merged in now. |
830281e
to
6b29fd6
Compare
What type of PR is this?
What this PR does / why we need it:
Overview
This PR introduces a new
auth_method
to theusers
table so that an administrator can set the method of authentication for their users. The current authentication methods areMealie
, default)LDAP
)Features
auth_method
is set toLDAP
.LDAP
as their authentication.LDAP
authentication method will not be able to update or reset their password as that should be handled via the LDAP provider itselfMigration
auth_method
column to the user tableauth_method
isMealie
auth_method
asLDAP
Open Items
Mealie
auth, their password will be "LDAP" (plaintext). How should we handle that?LDAP
as auth method? Doesn't make a lot of sense since they can just log in and be created automatically.Screenshots
User Management Screen
User Edit Screen
User Creation Screen
Testing
authenticate_user
method with the newauth_method
set for a test userRelease Notes