9 Oct
2006
9 Oct
'06
1:56 a.m.
On Thu, 2006-08-31 at 22:37 +0200, guard wrote:
Hello, I have problem with authentication. I'm using SHA1 passwords stored in MySQL.
From debug: Info: auth-worker(default): sql(test@mail, IP): query: SELECT password FROM vmail WHERE mail = 'test@mail' Info: auth-worker(default): sql(test@mail ,IP): Password mismatch Info: auth-worker(default): sql(test@mail ,IP): SHA1(dupadupa) != '2bca9dbe8a14811c687bb8c51c0e1cd14db8a018'
In case you didn't yet figure this out, there's a small difference.. Dovecot wants SHA1-passwords to be base64-encoded, while the password above is hex-encoded.
Hmm. I think this could be detected automatically based on just the length of the string.. Yea, I think I'll change the code to handle both cases automatically.