Re: [Exim] Courier userdb md5 passwords?

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Christopher W. Curtis
Data:  
Para: Dave C.
CC: exim-users
Asunto: Re: [Exim] Courier userdb md5 passwords?
Dave C. wrote:

> I'm trying to setup SMTP AUTH, but I need a way to check passwords from
> within exim. exim's ${md5... expansion seems to output the md5sum in an
> entriely different format. I've tried ${crypteq\{md5\} but it doesnt
> pass that either..
> [...]
> courier 'userdb' md5 hashed string:
> $1$eYrvxTAm$Wz4Wkxe5exy/5VhkuTnYH0


solid-pop3d used this same format; it's BSD MD5. I don't know much
about it, but I got Open Webmail to support it with this perl code:

    } elsif( $AuthEncode eq "md5-bsd") {
       use Crypt::PasswdMD5 qw(unix_md5_crypt);
       # BSD MD5 goes like '$1$ <salt> $ <md5>'
       $p =~ m/\$1\$([^\$]+)\$(.*)/;
       $salt = $1, $p5 = $2;
       writelog( "Error! Not a BSD-MD5 encoding!\n" ), return 0
          if( $salt eq "" || $p5 eq "" );
       return 1 if $p eq unix_md5_crypt($password, $salt);
    } else {


You may need some hax0ring, since this isn't a cookie cutter solution,
just some information. Dunno if Exim supports this out of the box.

Christopher