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

Create user account onlogin (LDAP) #1808

Open
treborrx opened this issue Jan 11, 2021 · 1 comment
Open

Create user account onlogin (LDAP) #1808

treborrx opened this issue Jan 11, 2021 · 1 comment

Comments

@treborrx
Copy link

treborrx commented Jan 11, 2021

Is your feature request related to a problem? Please describe.
Every time new user is created in directory service, calibre admin needs to "import LDAP users" or create account manually.

Describe the solution you'd like
If user doesn't exist in app.db, try to ldap.bind_user() with credentials provided (or at least ldap.get_object_details(form['username']) to check if account exists). If ldap succeded and user account does not exists in app.db, create account with default settings.

@coolmule0
Copy link

A slightly more automated solution seems to be to call http://calibre.example.com/import_ldap_users. This is equivalent of pressing the "Import LDAP Users", and will trigger calling the LDAP server. Wiring this up to the LDAP server to call it when a user is created would complete the automation.

Its not directly addressing your issues, but would solve the problem I think.

epsilon-0 added a commit to epsilon-0/calibre-web that referenced this issue Dec 19, 2022
epsilon-0 added a commit to epsilon-0/calibre-web that referenced this issue Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants