OK, really, this time the capitalization for AUTH mechanisms is correct.
git-svn-id: https://svn.perl.org/qpsmtpd/branches/0.3x@662 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
9028958307
commit
a7a3031440
@ -243,7 +243,7 @@ sub auth {
|
|||||||
return $self->respond(501, $mechanism || "Syntax error in command")
|
return $self->respond(501, $mechanism || "Syntax error in command")
|
||||||
unless ($ok == OK);
|
unless ($ok == OK);
|
||||||
|
|
||||||
$mechanism = uc($mechanism);
|
$mechanism = lc($mechanism);
|
||||||
|
|
||||||
|
|
||||||
#they AUTH'd once already
|
#they AUTH'd once already
|
||||||
@ -257,7 +257,7 @@ sub auth {
|
|||||||
and $self->transaction->notes('tls_enabled') );
|
and $self->transaction->notes('tls_enabled') );
|
||||||
|
|
||||||
# if we don't have a plugin implementing this auth mechanism, 504
|
# if we don't have a plugin implementing this auth mechanism, 504
|
||||||
if( exists $auth_mechanisms{$mechanism} ) {
|
if( exists $auth_mechanisms{uc($mechanism)} ) {
|
||||||
return $self->{_auth} = Qpsmtpd::Auth::SASL( $self, $mechanism, @stuff );
|
return $self->{_auth} = Qpsmtpd::Auth::SASL( $self, $mechanism, @stuff );
|
||||||
} else {
|
} else {
|
||||||
$self->respond( 504, "Unimplemented authentification mechanism: $mechanism" );
|
$self->respond( 504, "Unimplemented authentification mechanism: $mechanism" );
|
||||||
|
Loading…
Reference in New Issue
Block a user