mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
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
This commit is contained in:
parent
1e2f15f773
commit
151bb290d1
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user