From: Jeremy Allison Date: Tue, 5 Sep 2006 21:11:08 +0000 (+0000) Subject: r18107: Only do a SAF realm store if the logon was krb5. X-Git-Tag: samba-4.0.0alpha6~801^2~7716 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f50142e4d725c81d9ab8984ece342b6759eb475;p=thirdparty%2Fsamba.git r18107: Only do a SAF realm store if the logon was krb5. Jeremy. (This used to be commit 131682461c87973ac9ce0e2d097ad4d7b7afb23c) --- diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c index efee477c0d4..85b1d5d6cdc 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 ); }