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

Automatically sync users on modification #138

Open
supermamie opened this issue Feb 13, 2024 · 4 comments
Open

Automatically sync users on modification #138

supermamie opened this issue Feb 13, 2024 · 4 comments

Comments

@supermamie
Copy link

Describe the bug

When a user is updated in YunoHost, a manual action is needed in Calibre.

Context

  • YunoHost version: 11.2.10 (stable)

Steps to reproduce

  1. Update the password of a user from the admin interface
  2. Try to log in Calibre with this new password
  3. fail
  4. Log in Calibre with an admin user
  5. Click on « Import from LDAP » in the admin view
  6. Now the new password works

Expected behavior

The LDAP synchro should be automatic when a user is modified

@Krakinou
Copy link
Collaborator

When you say "Update the password of a user from the admin interface", you mean in Yunohost admin interface or calibreweb?

@thardev
Copy link

thardev commented Feb 22, 2024

Hi all 🙂

I've had the same issue after creation of new users on my instance. I think this could be solved with a post_user_create hook similar to the already existing post_user_delete. Sadly, I'm not aware if there is a hook after a user is modified, so maybe is out of the scope for this issue, I could create a separate one if needed and I'm also happy to provide the hook on a PR.

@Krakinou
Copy link
Collaborator

This is a different issue : although the hook exists on the Yunohost side, triggering the correct function to create the same user on the calibreweb side is not a trivial issue. This is not just about adding a new entry in the database.
I planned to work on this someday, but I never get the time to do it : PR are welcome if you know how to do it.

@Krakinou
Copy link
Collaborator

@supermamie : I tried to reproduce the issue but did not succeed.
1/Calibreweb is set as public (accessible to the visitor group)
2/Change the password of an existing user
3/Try to connect to calibreweb with the new password : work.
Can you please provide more info on the issue you're encountering?

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

3 participants