From 131682461c87973ac9ce0e2d097ad4d7b7afb23c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 5 Sep 2006 21:11:08 +0000 Subject: [PATCH] r18107: Only do a SAF realm store if the logon was krb5. Jeremy. --- source/nsswitch/winbindd_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/nsswitch/winbindd_cm.c b/source/nsswitch/winbindd_cm.c index efee477c0d..85b1d5d6cd 100644 --- a/source/nsswitch/winbindd_cm.c +++ b/source/nsswitch/winbindd_cm.c @@ -363,7 +363,7 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain, /* cache the server name for later connections */ saf_store( domain->name, (*cli)->desthost ); - if (domain->alt_name) { + if (domain->alt_name && (*cli)->use_kerberos) { saf_store( domain->alt_name, (*cli)->desthost ); } -- 2.34.1