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:
parent
e58a8c169c
commit
aa79f76b0c
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user