From f49b62b44dd5dceb537a5364b1ff107db9a7aea4 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 5 Nov 2018 11:56:21 +0100 Subject: [PATCH] s3:winbind: Log client process name for PAM auth Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- source3/winbindd/winbindd_pam_auth.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source3/winbindd/winbindd_pam_auth.c b/source3/winbindd/winbindd_pam_auth.c index f91879e1c17..e3c18f9525c 100644 --- a/source3/winbindd/winbindd_pam_auth.c +++ b/source3/winbindd/winbindd_pam_auth.c @@ -52,8 +52,10 @@ struct tevent_req *winbindd_pam_auth_send(TALLOC_CTX *mem_ctx, request->data.auth.user[sizeof(request->data.auth.user)-1] = '\0'; request->data.auth.pass[sizeof(request->data.auth.pass)-1] = '\0'; - DEBUG(3, ("[%5lu]: pam auth %s\n", (unsigned long)cli->pid, - request->data.auth.user)); + DBG_NOTICE("[%s (%u)]: pam auth %s\n", + cli->client_name, + (unsigned int)cli->pid, + request->data.auth.user); if (!check_request_flags(request->flags)) { tevent_req_nterror(req, NT_STATUS_INVALID_PARAMETER_MIX);