mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 17:06:01 +03:00
[GH-ISSUE #1273] Webmail authentication failed by LDAP user #1029
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1029
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yiminfantw on GitHub (Oct 12, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1273
Impacted versions
Steps to reproduce
Fresh installation, following http://modoboa.readthedocs.io/en/latest/configuration.html to enable LDAP authentication, filling out LDAP settings and rebooting server, logging in by LDAP user and switching to webmail page.
Current behavior
Getting "Error: ['[AUTHENTICATIONFAILED] Authentication failed.']" when switching to webmail page.
Expected behavior
Normal webmail page as non-LDAP user has.
More info
Through admin account I can see the LDAP user mailbox has been created in Identities page. The user role is "Simple user", quota is disabled by "Use domain default value" checkbox ticked. User name and email are [name]@[domain].
@tonioo commented on GitHub (Oct 12, 2017):
Have you configured dovecot too? (https://wiki.dovecot.org/HowTo/DovecotOpenLdap)
@yiminfantw commented on GitHub (Oct 13, 2017):
Hi @tonioo, I haven't configured dovecot yet, will get on that. Thx for pointing this out.
@yiminfantw commented on GitHub (Oct 13, 2017):
Hi @tonioo,
I managed to configure dovecot-ldap.conf.ext and now the authentication seems passing through, but I got the following error:
By checking dovecot status, I got the following info(cuz I set debug_level=-1):
Although I'm not sure what does the auth: error mean for the first two lines, but it seems passing through and encountering permission issue on modoboa(or dovecot?) admin side. Should it create user folder in /home? Creating local user(say domain admin) doesn't create user folder in /home though...
Any suggestion? FYI, I upgraded to v1.9.1.
Cheers,
YiMin
@ProCreator commented on GitHub (Oct 14, 2017):
@tonioo,
I am having the same problem. So if I understand correctly what is being said is that the Modoboa ldap authentication only work for the Modoboa administration and now webmail? I am running my Modoboa config on Ubuntu and am having a real difficult time following the complexities of of the dovecot wiki for setting up the authentication even though I have successfully setup the Modoboa authentication. Is there any way you could assist by simplifying the implementation?
@yiminfantw commented on GitHub (Oct 14, 2017):
Ya, the Modoboa ldap only works for Modoboa administration and has nothing to do with webmail (because dovecot takes different ldap config). Here is how I set it up, took me a while and looked up many internet resources though:
Btw, I just figured that the internal error is due the fact that I commented
!include auth-sql.conf.extin 10-auth.conf. After uncommenting it, my ldap user can open webmail page and send/receive emails. I thought sql and ldap are different authentication mechanism(sql is for local user?) and shouldn't affect each other. Do you have any idea why commenting!include auth-sql.conf.extmakes IMAP try to create user folder in /home?Also, even though the ldap user can now log in to Modoboa administration and webmail, I can still notice some ldap errors from dovecot status:
Any idea what is going on?
Thanks,
YiMin
@tonioo commented on GitHub (Oct 27, 2017):
I think your LDAP config file does not declare any userdb lookup. So, if you deactivate the sql default one, there is no userdb at all. In this case, and because the authentication works, dovecot tries to initiate a mailbox in the user home directory (default behaviour).
@tonioo commented on GitHub (Oct 27, 2017):
And regarding your errors, I don't know. I think you should ask on dovecot mailing list, you'll certainly have a better answer there.