mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 09:26:00 +03:00
[GH-ISSUE #852] 'NoneType' object is not iterable after a ldap login #756
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#756
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 @romainreuillon on GitHub (Mar 17, 2016).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/852
Hi,
I configured the ldap login using search and bind with the following settings:
Annonymous bind
users search base: ou=People,dc=iscpif,dc=fr
search filter: (uid=%(user)s)
password attribute: userPassword
It seems to work since when I enter an login / password not in the ldap modoboa tells "wrong login / password", but when I enter a correct login password (for instance login: reuillon, mdp: password), I get this error :
Any idea what goes wrong ?
cheers,
Romain
@tonioo commented on GitHub (Mar 17, 2016):
Hi,
have you read the documentation about LDAP configuration ? (http://modoboa.readthedocs.org/en/latest/getting_started/configuration.html#ldap):
So, if you want to create simple users from your LDAP directory, you must use email addresses as usernames. I suggest you change the search filter to match an email address instead of a uid.
@romainreuillon commented on GitHub (Mar 17, 2016):
Hi Tonioo,
Thanks for pointing that out. I fixed my config by setting the search filter to (mail=%(user)s). I can now login modoboa with romain.reuillon@iscpif.fr as username. However when I go to the webmail page I get this error:
Error: ['[AUTHENTICATIONFAILED] Authentication failed.']Any idea what could be wrong?
Romain
@romainreuillon commented on GitHub (Mar 17, 2016):
PS: it seem that no domain neither mail box have been created in /srv/vmail
@romainreuillon commented on GitHub (Mar 17, 2016):
PS2: I just tried with non ldap users and everything works fine for the same domain
@romainreuillon commented on GitHub (Mar 17, 2016):
In syslog I get this kind of error:
Mar 17 17:21:18 mail dovecot: auth: Error: sql(romain.reuillon@iscpif.fr,127.0.0.1,<slo3BUEuogB/AAAB>): Invalid password in passdb: Not a valid MD5-CRYPT or PLAIN-MD5 password Mar 17 17:21:20 mail dovecot: imap-login: Disconnected (auth failed, 1 attempts in 2 secs): user=<romain.reuillon@iscpif.fr>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<slo3BUEuogB/AAAB>@tonioo commented on GitHub (Mar 18, 2016):
Users created from a LDAP directory won't have any password in the SQL database. The passwords will always stay into the directory so you need to setup both LDAP and SQL authentication for Dovecot.
About mailbox on the local file system, it will be created by Dovecot after the first succesfull login.
@romainreuillon commented on GitHub (Mar 18, 2016):
Thanks it helps a lot!
@tonioo commented on GitHub (Mar 18, 2016):
Can I close the issue ?
@romainreuillon commented on GitHub (Mar 18, 2016):
Yes
@changchichung commented on GitHub (Feb 5, 2022):
I have the same error
but I can not find where to do these ??
I know the LDAP part , but where can I configure "SQL authentication for Dovecot." ??
I see nothing related to dovecot in modoboa parameters