Hi,

I'd like to enable SMTP Auth against an existing htpasswd-generated file.

Passwords in the auth file are encrypted using MD5, e.g.:

htpasswd -c -m -b htpasswd user1 pass1
htpasswd -m -b htpasswd user2 pass2

Resulting file:

user1:$apr1$I8RWV...$hMZbY.7S1n3ccgUKySa141
user2:$apr1$7W/ed/..$rgXQa3tbPnPcVzcSKtOAC.

Will auth_flat_file support this? Or do I need to modify it to work with
htpasswd-generated files?

Am I right in thinking that all I need to do is generate an MD5 hash of
the supplied password and compare it to the encrypted passwd in the
passwd file?

Thanks,

R.

Reply via email to