From 8f50142e4d725c81d9ab8984ece342b6759eb475 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 5 Sep 2006 21:11:08 +0000 Subject: r18107: Only do a SAF realm store if the logon was krb5. Jeremy. (This used to be commit 131682461c87973ac9ce0e2d097ad4d7b7afb23c) --- source3/nsswitch/winbindd_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c index efee477c0d..85b1d5d6cd 100644 --- a/source3/nsswitch/winbindd_cm.c +++ b/source3/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 ); } -- cgit