From 7f8848d2e83893ef7e8438bce8e76919b77f40d5 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Sun, 21 Apr 2013 17:02:34 -0400 Subject: [PATCH] auth_chkpw: added pass|fail prefix to log msgs --- plugins/auth/auth_checkpassword | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/auth/auth_checkpassword b/plugins/auth/auth_checkpassword index cb84758..a20fb71 100644 --- a/plugins/auth/auth_checkpassword +++ b/plugins/auth/auth_checkpassword @@ -136,11 +136,12 @@ sub auth_checkpassword { my $status = $?; if ($status != 0) { - $self->log(LOGNOTICE, "authentication failed ($status)"); + $self->log(LOGNOTICE, "fail, auth failed: $status"); return (DECLINED); } $self->connection->notes('authuser', $user); + $self->log(LOGINFO, "pass, auth success with $method"); return (OK, "auth_checkpassword"); }