summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-09-05 21:11:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:43:29 -0500
commit131682461c87973ac9ce0e2d097ad4d7b7afb23c (patch)
tree12c87118d34f7a4171737c04f3e56fec6e23502d
parent027c7964eeb658d47e4aa2b974cc0c6089dbdba0 (diff)
downloadsamba-131682461c87973ac9ce0e2d097ad4d7b7afb23c.tar.gz
samba-131682461c87973ac9ce0e2d097ad4d7b7afb23c.tar.xz
samba-131682461c87973ac9ce0e2d097ad4d7b7afb23c.zip
r18107: Only do a SAF realm store if the logon was krb5.
Jeremy.
-rw-r--r--source/nsswitch/winbindd_cm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_cm.c b/source/nsswitch/winbindd_cm.c
index efee477c0d4..85b1d5d6cdc 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 );
}