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 | c99bc305599698f2291efbfe20024355cb2bcde0 (patch) | |
tree | 6a0748f032fefe8bd789b007494a0ca33038fd58 /source/libsmb | |
parent | 5b4b3323a3fbabbb3c7db5eb3b11999bbde470b1 (diff) | |
download | samba-c99bc305599698f2291efbfe20024355cb2bcde0.tar.gz samba-c99bc305599698f2291efbfe20024355cb2bcde0.tar.xz samba-c99bc305599698f2291efbfe20024355cb2bcde0.zip |
update the ldap support code. it compiles.
Ignacio you can update your howto ;-)
samsync: a small patch to try chaning challenges.
J.F.
Diffstat (limited to 'source/libsmb')
-rw-r--r-- | source/libsmb/cli_netlogon.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/libsmb/cli_netlogon.c b/source/libsmb/cli_netlogon.c index 896af0d7c95..8840a6264bb 100644 --- a/source/libsmb/cli_netlogon.c +++ b/source/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); |