mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-27 09:55:58 +03:00
[GH-ISSUE #1564] [MD5-CRYPT] imported password do not work. #1231
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#1231
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 @stefaweb on GitHub (Sep 3, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1564
Impacted versions
Steps to reproduce
Imported accounts with [MD5-CRYPT] don't work. The account is well created but login failed.
/var/log/mail.log:
Sep 3 18:51:37 modoboa dovecot: auth-worker(25093): Error: sql(man@domain.tld,xx.xx.xx.xx,<ptTDWvp0eJ0+0qZC>): Invalid password in passdb: Not a valid MD5-CRYPT or PLAIN-MD5 passwordFrom imported cvs:
account;man@domain.tldr;[MD5-CRYPT]c3af58603be288769bb31d980bb74abc;;;True;SimpleUsers;man@domain.tld;102Am I wrong somewhere?
@stefaweb commented on GitHub (Sep 3, 2018):
Found. Can't work when we use
[]instead of{}I close.
@stefaweb commented on GitHub (Sep 4, 2018):
Hello!
I reopen this issue.
I corrected my export code to use brackets instead of quote but the problem is still here.
account;man@domain.tldr;{MD5-CRYPT}c3af58603be288769bb31d980bb74abc;;;True;SimpleUsers;man@domain.tld;102The password was generated with the php md5() command.
@tonioo commented on GitHub (Sep 4, 2018):
The format was indeed wrong. And you still have an issue since you selected the wrong scheme. If passwords were generated using the md5 php function then you should select MD5. FYI, this is a weak encryption mechanism and you should move to MD5-CRYPT which is far more secure.
@stefaweb commented on GitHub (Sep 4, 2018):
Sorry but I don't understand, do you mean
{MD5}?@tonioo commented on GitHub (Sep 4, 2018):
Yes.
@stefaweb commented on GitHub (Sep 4, 2018):
I tried, still doesn't work.
@tonioo commented on GitHub (Sep 4, 2018):
And make sure the "Crypt passwords" checkbox is not checked.
@stefaweb commented on GitHub (Sep 4, 2018):
"Crypt passwords" is not checked in import page.
@tonioo commented on GitHub (Sep 4, 2018):
I remember MD5 passwords must be base64 encoded (dovecot requirement). Is it the case?
@stefaweb commented on GitHub (Sep 4, 2018):
No, basic md5() without salt or base64 encoding.
@stefaweb commented on GitHub (Sep 4, 2018):
I'll try later to base64 encode the md5 password. I'll let you know.
@stefaweb commented on GitHub (Sep 4, 2018):
I encoded the md5 password with base64. Still do not work.
@stefaweb commented on GitHub (Sep 4, 2018):
Found.
I made an error when trying the connexion. I navigator autocomplete was not entering the right password.
It work with {MD5} and regular MD5 scheme. No need to base64 encode (does't work).
I close this time. Thanks.
ps: vacation api for modoboa. Any new?