Add username for AUTH success/failure log entry
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@328 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
b9646eef75
commit
03455aff9a
@ -316,7 +316,7 @@ sub SASL {
|
||||
}
|
||||
|
||||
if ( $rc == OK ) {
|
||||
$msg = "Authentication successful" .
|
||||
$msg = "Authentication successful for $user" .
|
||||
( defined $msg ? " - " . $msg : "" );
|
||||
$session->respond( 235, $msg );
|
||||
$session->connection->relay_client(1);
|
||||
@ -324,7 +324,7 @@ sub SASL {
|
||||
return OK;
|
||||
}
|
||||
else {
|
||||
$msg = "Authentication failed" .
|
||||
$msg = "Authentication failed for $user" .
|
||||
( defined $msg ? " - " . $msg : "" );
|
||||
$session->respond( 535, $msg );
|
||||
$session->log( LOGERROR, $msg );
|
||||
|
Loading…
Reference in New Issue
Block a user