]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-winbindd: Fix Bug #6700: Use dns domain name when needing to guess server principal.
authorGünther Deschner <gd@samba.org>
Wed, 9 Sep 2009 00:29:58 +0000 (02:29 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 9 Sep 2009 10:24:33 +0000 (12:24 +0200)
Patch from Robert LeBlanc <robert@leblancnet.us>.

Thanks!

Guenther

source/winbindd/winbindd_cm.c

index bc3db08f2aa91404a1a485b6a6bf5a6ea9d38289..0c53112adb9bf3e6fadd8765c34ed9fbd11c5032 100644 (file)
@@ -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",