1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:winbind: Improve logging in winbindd_pam_auth.c

Test scenario:
$ bin/wbinfo --pam-logon=ADDOMAIN/alice%Secret007

Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Pavel Filipenský 2022-06-24 14:29:35 +02:00 committed by Andreas Schneider
parent fff33f71bb
commit 4f63a3b731

View File

@ -95,7 +95,8 @@ struct tevent_req *winbindd_pam_auth_send(TALLOC_CTX *mem_ctx,
return NULL;
}
DBG_NOTICE("[%s (%u)]: pam auth %s\n",
D_NOTICE("[%s (%u)] Winbind external command PAM_AUTH start.\n"
"Authenticating user '%s'.\n",
cli->client_name,
(unsigned int)cli->pid,
request->data.auth.user);
@ -218,6 +219,7 @@ NTSTATUS winbindd_pam_auth_recv(struct tevent_req *req,
req, struct winbindd_pam_auth_state);
NTSTATUS status;
D_NOTICE("Winbind external command PAM_AUTH end.\n");
if (tevent_req_is_nterror(req, &status)) {
set_auth_errors(response, status);
return status;
@ -257,8 +259,8 @@ NTSTATUS winbindd_pam_auth_recv(struct tevent_req *req,
state->r->in.info->username,
state->r->in.info->uid,
state->r->in.info->password);
DEBUG(10, ("winbindd_add_memory_creds returned: %s\n",
nt_errstr(status)));
D_DEBUG("winbindd_add_memory_creds returned: %s\n",
nt_errstr(status));
}
if (state->r->in.flags & WBFLAG_PAM_GET_PWD_POLICY) {