From e69033012122e2f2fc9dc6731d16daca98b25092 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 19 Jan 2009 16:26:07 +0100 Subject: [PATCH] Avoid flooding of syslog with failing pam_putenv messages. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Schneider Signed-off-by: Günther Deschner (cherry picked from commit acb1debf257c6c3df325267b2a4c8e2d40c1f850) --- source/nsswitch/pam_winbind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/nsswitch/pam_winbind.c b/source/nsswitch/pam_winbind.c index 338d538ab7f..4c24d6a7c78 100644 --- a/source/nsswitch/pam_winbind.c +++ b/source/nsswitch/pam_winbind.c @@ -2428,7 +2428,7 @@ out: * Delete the krb5 ccname variable from the PAM environment * if it was set by winbind. */ - if (ctx->ctrl & WINBIND_KRB5_AUTH) { + if ((ctx->ctrl & WINBIND_KRB5_AUTH) && pam_getenv(pamh, "KRB5CCNAME")) { pam_putenv(pamh, "KRB5CCNAME"); } -- 2.11.4.GIT