[EMAIL PROTECTED] a écrit :
(I'd still appreciate a solid example of an entry in
config/auth_flat_file and the equivalent login name to use in the mail
client.)
I'm starting to doubt that anyone is actually using that plugin. Here's
the hard-coded plugin I wrote a while ago and that I'm still using. I'm
affirmative that this plugin works. You'll have to change myusername and
mypassword to the right values.
sub register {
my ( $self, $qp ) = @_;
$self->register_hook( "auth-plain", "authsimple" );
$self->register_hook( "auth-cram-md5", "authsimple" );
}
sub authsimple {
use Qpsmtpd::Constants;
use Digest::HMAC_MD5 qw(hmac_md5_hex);
my ( $self, $transaction, $method, $user, $passClear, $passHash,
$ticket ) = @_;
if ( $user eq 'myusername' and (
( defined $passClear and ('mypassword' eq $passClear) ) or
( defined $passHash and ($passHash eq hmac_md5_hex( $ticket,
'mypassword' ) ) )
) ) {
return ( OK, "authsimple/$method" );
} else {
return ( DENY, "authsimple/$method - wrong password" );
}
}
--
Guillaume Filion, ing. jr
Logidac Tech., Beaumont, Québec, Canada - http://logidac.com/
PGP Key and more: http://guillaume.filion.org/