diff options
author | Tim Potter <tpot@samba.org> | 2002-11-06 01:29:07 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-11-06 01:29:07 +0000 |
commit | ea24bb2da8f643e043dc3af3ed3f16388878b57b (patch) | |
tree | dcffacff686f4867441fc7b177a865bcc43ea212 /source3/rpcclient | |
parent | 62d4ea1bc50bcd9f89fa054f60ca475f87b4a9de (diff) | |
download | samba-ea24bb2da8f643e043dc3af3ed3f16388878b57b.tar.gz samba-ea24bb2da8f643e043dc3af3ed3f16388878b57b.tar.bz2 samba-ea24bb2da8f643e043dc3af3ed3f16388878b57b.zip |
Merge of get_dc_list() api change. This was slightly more intrusive
than the version in APPLIANCE so watch out for boogs.
(This used to be commit 1e054e3db654801fbb5580211529cdfdea9ed686)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/samsync.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/rpcclient/samsync.c b/source3/rpcclient/samsync.c index fb07123b77..cbc3601812 100644 --- a/source3/rpcclient/samsync.c +++ b/source3/rpcclient/samsync.c @@ -494,8 +494,7 @@ static struct cli_state *init_connection(struct cli_state **cli, char *password) { extern pstring global_myname; - struct in_addr *dest_ip; - int count; + struct in_addr pdc_ip; fstring dest_host; /* Initialise myname */ @@ -511,13 +510,13 @@ static struct cli_state *init_connection(struct cli_state **cli, /* Look up name of PDC controller */ - if (!get_dc_list(True, lp_workgroup(), &dest_ip, &count)) { + if (!get_pdc_ip(lp_workgroup(), &pdc_ip)) { DEBUG(0, ("Cannot find domain controller for domain %s\n", lp_workgroup())); return NULL; } - if (!lookup_dc_name(global_myname, lp_workgroup(), dest_ip, + if (!lookup_dc_name(global_myname, lp_workgroup(), pdc_ip, dest_host)) { DEBUG(0, ("Could not lookup up PDC name for domain %s\n", lp_workgroup())); @@ -525,7 +524,7 @@ static struct cli_state *init_connection(struct cli_state **cli, } if (NT_STATUS_IS_OK(cli_full_connection(cli, global_myname, dest_host, - dest_ip, 0, + pdc_ip, 0, "IPC$", "IPC", username, domain, password, 0))) { |