From: Günther Deschner Date: Wed, 9 Sep 2009 00:29:58 +0000 (+0200) Subject: s3-winbindd: Fix Bug #6700: Use dns domain name when needing to guess server principal. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd920dcff320a097bcc46a9468a78cedca6fb2be;p=thirdparty%2Fsamba.git s3-winbindd: Fix Bug #6700: Use dns domain name when needing to guess server principal. Patch from Robert LeBlanc . Thanks! Guenther --- diff --git a/source/winbindd/winbindd_cm.c b/source/winbindd/winbindd_cm.c index bc3db08f2aa..0c53112adb9 100644 --- a/source/winbindd/winbindd_cm.c +++ b/source/winbindd/winbindd_cm.c @@ -857,7 +857,7 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain, machine_krb5_principal, machine_password, lp_workgroup(), - domain->name); + domain->alt_name); if (!ADS_ERR_OK(ads_status)) { DEBUG(4,("failed kerberos session setup with %s\n",