summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <anschneider@suse.de>2009-01-19 16:26:07 +0100
committerGünther Deschner <gd@samba.org>2009-01-19 16:49:35 +0100
commitaa79f76b0cfcf402bdf955cdf8356d619ace0b68 (patch)
tree846ca4e165b416b49b05fa62ae175d9b1637f5df
parente58a8c169cd075ca900a2a144d7b5387460bbf05 (diff)
downloadsamba-aa79f76b0cfcf402bdf955cdf8356d619ace0b68.tar.gz
samba-aa79f76b0cfcf402bdf955cdf8356d619ace0b68.tar.xz
samba-aa79f76b0cfcf402bdf955cdf8356d619ace0b68.zip
Avoid flooding of syslog with failing pam_putenv messages.
Signed-off-by: Andreas Schneider <anschneider@suse.de> Signed-off-by: Günther Deschner <gd@samba.org>
-rw-r--r--nsswitch/pam_winbind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index d049bdb1e7d..62d72c291b2 100644
--- a/nsswitch/pam_winbind.c
+++ b/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");
}