summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-29 21:48:41 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-29 21:48:41 +0000
commit1bb4c6f01607f8e0cd5860aa4b3ed429308c3a3f (patch)
tree1217d4297493850a6c94dd433d9e0f5306d8b3a1
parent0d44ff9a765f2e89be8b0ee99ec7c907e7c225c3 (diff)
downloadsamba-1bb4c6f01607f8e0cd5860aa4b3ed429308c3a3f.tar.gz
samba-1bb4c6f01607f8e0cd5860aa4b3ed429308c3a3f.tar.bz2
samba-1bb4c6f01607f8e0cd5860aa4b3ed429308c3a3f.zip
sam sync - one of the files that use multiple connection server list
to \PIPE\NETLOGON. (This used to be commit 2ae9ee148582cc0ba9e067be3d6338079aea49a1)
-rw-r--r--source3/rpc_client/cli_netlogon_sync.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/source3/rpc_client/cli_netlogon_sync.c b/source3/rpc_client/cli_netlogon_sync.c
index fad802d0c9..b32aaa6fa2 100644
--- a/source3/rpc_client/cli_netlogon_sync.c
+++ b/source3/rpc_client/cli_netlogon_sync.c
@@ -33,7 +33,6 @@ extern pstring global_myname;
BOOL synchronise_passdb(void)
{
- struct cli_state cli;
SAM_DELTA_HDR hdr_deltas[MAX_SAM_DELTAS];
SAM_DELTA_CTR deltas[MAX_SAM_DELTAS];
uint32 num;
@@ -46,23 +45,11 @@ BOOL synchronise_passdb(void)
uchar trust_passwd[16];
fstring trust_acct;
- fstring srv_name;
char *mode;
BOOL success;
BOOL ret;
int i;
- DEBUG(0,("cannot make connection to multi-list of servers yet!\n"));
-
- if (!cli_connect_serverlist(&cli, lp_passwordserver()))
- {
- return False;
- }
-
- fstrcpy(srv_name, "\\\\");
- fstrcat(srv_name, lp_passwordserver()); /* LKCL XXXX oops! */
- strupper(srv_name);
-
fstrcpy(trust_acct, global_myname);
fstrcat(trust_acct, "$");
@@ -71,7 +58,8 @@ BOOL synchronise_passdb(void)
return False;
}
- ret = net_sam_sync(srv_name, global_myname, trust_acct, trust_passwd,
+ ret = net_sam_sync(lp_password_server(), global_myname, trust_acct,
+ trust_passwd,
hdr_deltas, deltas, &num);
if (ret)
@@ -112,7 +100,5 @@ BOOL synchronise_passdb(void)
}
}
- cli_ulogoff(&cli);
- cli_shutdown(&cli);
return ret;
}