summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/nsswitch/winbindd_cm.c2
1 files changed, 1 insertions, 1 deletions
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 );
}