On Mon, Feb 02, 2004 at 08:02:53PM +0200, Timo Sirainen wrote:
On Sat, 2004-01-31 at 01:21, SAiello@Jentoo.com wrote:
Looking at the possible LDAP passwords Schemes, if I wanted to use PLAIN-MD5 or DIGEST-MD5, what would format would I use in LDAP for the userPassword field ? I have done SHA, SSHA, and MD5 before, but not sure what is acceptable for the above mentioned, that dovecot can use.
PLAIN-MD5 means the field contains just the MD5 sum of the password in hex. DIGEST-MD5 is MD5 sum of user:realm:password string. They don't have any special format in there..
There is a certain impedence mismatch between RFC2307's idea of {MD5} and Dovecot's. I tinkered a while ago with this quirk and the resulting patch is attached. (also available from http://www.roughtrade.net/dovecot/)
Caveat emptor: it is totally untested beyond my workstation, it is unchanged from months ago, has not been reviewed by Timo and is not in the CVS tree. I've only just confirmed that it compiles with 0.99.10.4. Let me know if it's of any use.
Regards Joshua.
-- Joshua Goodall "as modern as tomorrow afternoon" joshua@roughtrade.net - FW109