1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

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>
This commit is contained in:
Andreas Schneider 2009-01-19 16:26:07 +01:00 committed by Günther Deschner
parent e58a8c169c
commit aa79f76b0c

View File

@ -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");
}