-
-
Notifications
You must be signed in to change notification settings - Fork 20
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 request: User auto-generation after successful IMAP login #56
Comments
Hi @reven It should be possible I think, behind a feature flag. Do you want to give it a try ? |
I'd love to give it a go, but I have zero experience with Symfony. I'll look over and try, but if anyone else wants to hop on it, I'd be grateful. I found something that could serve as a starting point: https://github.com/Excision-Mail/ansible-baikal/blob/main/files/baikal-0.9.1-ldap-auth-and-smtp.patch |
This patch is interesting, it seems quite straightforward to "port" to Davis. Give it a try and let me know, I should be able to help (not before mid-March though). |
I've had some time to try something in d8d01fc. As I have no readily available IMAP server, could you test the tip of the master branch and tell me if this works for you ? You have to enable the feature via the Thanks ! |
I gave it a try and unfortunately the changes break IMAP login, thus no autogeneration occurs. There is no error in the log either at the app level or server. Likewise there are no hits to imap-login on the IMAP server's logs. Going into dev and DEGUB mode, this is all I get when trying to login (with a user already created, that logged in ok before):
I don't know if this is helpful. Logging in with the admin user and accessing the dashboard works as expected. There are also some INFO on the log, not sure if relevant:
I'll be glad to test if you want. Sorry I can't provide more insight on the issue. |
Ok, thanks for the feedback. Will try to see what is wrong |
If you try to login by just pointing your browser at http://yourdavserver.com/dav, what happens ? You should receive a XML response stating the exact error. If you can send me that, that'll be helpful. NB: I made a small adjustment on the tip of the branch so you might want to pull the latest |
Now I get a 500 error. Checking the logs shows:
|
Ok, it seems that you still have an old cache on your machine. Try clearing the cache with |
Ok, I think it works! I get access to Sabre and the user is clearly authenticated. Adding the calendar through a desktop app works fine; I can add/edit events, etc. Awesome!! |
Great ! I'll test a bit more and tag a new release when I'm confident it's ok |
Thanks to you for the work! |
Can you help me out pls.? How the IMAP (or LDAP) user-autocreation should work? This is something I've still missing from Baikal. First:
Now I wanted to see if / how user-autocreate works, so I removed the manually created account -> afterwards the calendar config not works :) Caldav client macos Calendar app.
|
Do you have auto create set correctly in the first place? See https://github.com/tchapi/davis?tab=readme-ov-file#specific-environment-variables-for-imap-and-ldap-authentication-methods |
Would it be possible to hook auto-generation of the user in the db, as well as default calendar and address book after a successful IMAP auth if the user is not defined?
The text was updated successfully, but these errors were encountered: