On Wed, 2006-05-03 at 21:30 -0700, kbaker wrote:
> So I am using the "-p md5-hash-raw" setting now. I got this from the
> "dbmail-users -h" command as you suggested. It matches the MD5
> encryption I was using in Java so that's good.
>
> However now DBMail is not accepting the password.
>
> It is entering the encrypted password in the "dbmail_users.password"
> field and the encryption type "MD5" in the "dbmail_users. encryption_type"
>
>
> Any thoughts? Is this a bug?
>From dbmail-user.c:
case MD5_HASH:
sprintf(pw, "%s%s%s", "$1$", cget_salt(), "$");
null_strncpy(pw, null_crypt(passwd, pw), 49);
*enctype = "md5";
break;
...
case MD5_DIGEST:
null_strncpy(pw, (char *)makemd5((unsigned char *)passwd), 49);
*enctype = "md5sum";
break;
Umm, looks like the md5 code is actually crypting!?
Aaron