]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
nsswitch: add logging to wbc_auth_error_to_pam_error() for non auth errors
authorStefan Metzmacher <metze@samba.org>
Wed, 18 Sep 2019 11:58:46 +0000 (13:58 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 24 Sep 2019 18:30:37 +0000 (18:30 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
nsswitch/pam_winbind.c

index 7841377fdd655e379cf8ee9b17c41d3609150524..3ad70d3c4cdc83886d6e618fd102357c2b756b1d 100644 (file)
@@ -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);
 }