From: Stefan Metzmacher Date: Wed, 18 Sep 2019 11:58:46 +0000 (+0200) Subject: nsswitch: add logging to wbc_auth_error_to_pam_error() for non auth errors X-Git-Tag: talloc-2.3.1~711 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acbf922fc2963a42d6cbe652bb32eee231020958;p=thirdparty%2Fsamba.git nsswitch: add logging to wbc_auth_error_to_pam_error() for non auth errors Signed-off-by: Stefan Metzmacher Reviewed-by: Guenther Deschner --- 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); }