diff options
author | Stefan Metzmacher <metze@samba.org> | 2019-09-18 13:58:46 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-10-02 09:32:21 +0000 |
commit | ed3ac77dc22572132667df2f2ba717cc16a8daa7 (patch) | |
tree | 8e250ccd5d6305a02852968e3e6f0c3760251ddf | |
parent | fa63860f7b1621e507c1950872444d366891384a (diff) | |
download | samba-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)
-rw-r--r-- | nsswitch/pam_winbind.c | 4 |
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); } |