summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2019-09-18 13:58:46 +0200
committerKarolin Seeger <kseeger@samba.org>2019-10-02 09:32:21 +0000
commited3ac77dc22572132667df2f2ba717cc16a8daa7 (patch)
tree8e250ccd5d6305a02852968e3e6f0c3760251ddf /nsswitch
parentfa63860f7b1621e507c1950872444d366891384a (diff)
downloadsamba-ed3ac77dc22572132667df2f2ba717cc16a8daa7.tar.gz
nsswitch: add logging to wbc_auth_error_to_pam_error() for non auth errors
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> (cherry picked from commit acbf922fc2963a42d6cbe652bb32eee231020958)
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/pam_winbind.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index 7841377fdd6..3ad70d3c4cd 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -862,6 +862,10 @@ static int wbc_auth_error_to_pam_error(struct pwb_context *ctx,
}
ret = wbc_error_to_pam_error(status);
+ _pam_log(ctx, LOG_ERR,
+ "request %s failed: %s, PAM error: %s (%d)!",
+ fn, wbcErrorString(status),
+ _pam_error_code_str(ret), ret);
return pam_winbind_request_log(ctx, ret, username, fn);
}