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:23:23 +0000 (12:23 +0200)
Patch from Robert LeBlanc <robert@leblancnet.us>.

Thanks!

Guenther

source3/winbindd/winbindd_cm.c

index 09a12d01ad83a569ad5f9ba491260e7b49ff38dd..4571f22d34687c8833d45e9342edcdfab7ba6ec6 100644 (file)
@@ -856,7 +856,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",