[LDAP] Allow existing users to log in with LDAP instead of mealie auth #2126
Closed
cmintey
started this conversation in
Feature Request
Replies: 1 comment 4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Before submitting this feature request I have
Please Describe The Problem To Be Solved
With the latest changes to LDAP auth, users who do not already exist in Mealie are created on the fly, which is great. However, existing users in mealie cannot log in with LDAP (without manually changing their password to
LDAP
in the database).(Optional): Suggest A Solution
I propose a solution similar to how the LDAP plugin works in Jellyfin. In this plugin, there is an option for each user on which authentication provider should be used, either "default" or "LDAP". With this in place, the existing mealie users could be switched over to using LDAP auth instead of having to manually change their password, or deleting their account and having LDAP recreate it.
This could be accomplished by adding a new column to the user table
auth_type
, which defaults tomealie
(or whatever). Then on login, the flow would be as follows:auth_type
. user not exist: proceed as normalauth_type == "mealie"
--> login as normalauth_type == "ldap"
--> login with ldapAdditional Information
Beta Was this translation helpful? Give feedback.
All reactions