diff options
author | Jean-François Micouleau <jfm@samba.org> | 2001-12-13 18:09:29 +0000 |
---|---|---|
committer | Jean-François Micouleau <jfm@samba.org> | 2001-12-13 18:09:29 +0000 |
commit | 9f59fc64b8c1772b6a73d1649013d2187c298868 (patch) | |
tree | f6ebbb3e764fc618b88092477a0ac96078ef823a /source3/libsmb | |
parent | 037b40f01f8ec42250b33de08680d4f6a06eac64 (diff) | |
download | samba-9f59fc64b8c1772b6a73d1649013d2187c298868.tar.gz samba-9f59fc64b8c1772b6a73d1649013d2187c298868.tar.bz2 samba-9f59fc64b8c1772b6a73d1649013d2187c298868.zip |
update the ldap support code. it compiles.
Ignacio you can update your howto ;-)
samsync: a small patch to try chaning challenges.
J.F.
(This used to be commit c99bc305599698f2291efbfe20024355cb2bcde0)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/cli_netlogon.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/libsmb/cli_netlogon.c b/source3/libsmb/cli_netlogon.c index 896af0d7c9..8840a6264b 100644 --- a/source3/libsmb/cli_netlogon.c +++ b/source3/libsmb/cli_netlogon.c @@ -282,7 +282,7 @@ static void gen_next_creds( struct cli_state *cli, DOM_CRED *new_clnt_cred) /* Sam synchronisation */ -NTSTATUS cli_netlogon_sam_sync(struct cli_state *cli, TALLOC_CTX *mem_ctx, +NTSTATUS cli_netlogon_sam_sync(struct cli_state *cli, TALLOC_CTX *mem_ctx, DOM_CRED *ret_creds, uint32 database_id, uint32 *num_deltas, SAM_DELTA_HDR **hdr_deltas, SAM_DELTA_CTR **deltas) @@ -306,7 +306,7 @@ NTSTATUS cli_netlogon_sam_sync(struct cli_state *cli, TALLOC_CTX *mem_ctx, gen_next_creds(cli, &clnt_creds); init_net_q_sam_sync(&q, cli->srv_name_slash, cli->clnt_name_slash + 2, - &clnt_creds, database_id); + &clnt_creds, ret_creds, database_id); /* Marshall data and send request */ @@ -330,6 +330,8 @@ NTSTATUS cli_netlogon_sam_sync(struct cli_state *cli, TALLOC_CTX *mem_ctx, *hdr_deltas = r.hdr_deltas; *deltas = r.deltas; + memcpy(ret_creds, &r.srv_creds, sizeof(*ret_creds)); + done: prs_mem_free(&qbuf); prs_mem_free(&rbuf); |