diff options
author | Günther Deschner <gd@samba.org> | 2011-10-28 12:03:58 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-10-28 19:13:49 +0200 |
commit | 151bb290d12f6727fce4b6be29175d5ad5551bef (patch) | |
tree | 2c003861138a73c37df776548c22a22fb5f58996 | |
parent | 1e2f15f773ec97716af7e63562fe142fd619444a (diff) | |
download | samba-151bb290d12f6727fce4b6be29175d5ad5551bef.tar.gz samba-151bb290d12f6727fce4b6be29175d5ad5551bef.tar.bz2 samba-151bb290d12f6727fce4b6be29175d5ad5551bef.zip |
s3-net: Make sure to always re-use the "good" dc for the DNS updates as well.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Oct 28 19:13:49 CEST 2011 on sn-devel-104
-rw-r--r-- | source3/utils/net_ads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index c17367a0a4..b614432292 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -1466,7 +1466,7 @@ int net_ads_join(struct net_context *c, int argc, const char **argv) /* We enter this block with user creds */ ADS_STRUCT *ads_dns = NULL; - if ( (ads_dns = ads_init( lp_realm(), NULL, NULL )) != NULL ) { + if ( (ads_dns = ads_init( lp_realm(), NULL, r->in.dc_name )) != NULL ) { /* kinit with the machine password */ use_in_memory_ccache(); |