-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Hi,
I use calibrain/shelfmark for my book downloads. In shelfmark exists an option to use the user table of calibre-web app.db to login and distribute admin rights. For this shelfmark reads permissions, username and password hash from the db directly https://github.com/calibrain/shelfmark/issues/212.
Because I use ldap for authentification the password column of the calibre-web app.db is empty, and I can't login with the username in selfmark. My feature request (or enhancement) is to set the last correct authentificated password as the new user password in the calibre-web app.db.
I would imagine something like this:
-> Login attempt in CW GUI with user1 and pw1
-> lookup user1 in app.db
-> request ldap bind_user with user1 username and pw1
-> on return true, create pw1 hash and write in colum "password" for user1
If I understand it correctly, in this configuration you could still only login if the connection to the ldap server is established.
But it would make it easier to migrate away from ldap, there could be an option to use the app.db credentials to login if the ldap server is not responding and would allow me and others to use the app.db in shelfmark for login.