diff options
author | Tim Potter <tpot@samba.org> | 2002-11-06 05:14:15 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-11-06 05:14:15 +0000 |
commit | ab1cf8d1cf447e85063b43b65fa05c8b4bfde2a9 (patch) | |
tree | de41e9906d94ea9b2a1d2c12920d23b9640d3e83 /source3/rpcclient/samsync.c | |
parent | d21a06bbb44a0044657de38c1eb544be8c335918 (diff) | |
download | samba-ab1cf8d1cf447e85063b43b65fa05c8b4bfde2a9.tar.gz samba-ab1cf8d1cf447e85063b43b65fa05c8b4bfde2a9.tar.bz2 samba-ab1cf8d1cf447e85063b43b65fa05c8b4bfde2a9.zip |
Merge of get_dc_list() api change from HEAD.
(This used to be commit 6ba7847ce2756fde94e530fd0bf2a055f3e27373)
Diffstat (limited to 'source3/rpcclient/samsync.c')
-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))) { |