diff options
author | Günther Deschner <gd@samba.org> | 2008-10-28 02:37:43 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-29 08:57:28 +0100 |
commit | 0de8811a59258774a1df3756b7071c0b4a2f2902 (patch) | |
tree | 36060a1c6b6ebd73aca542bd0213d7b41c42e9e3 /source4/torture/rpc | |
parent | fccd5a4dfdd02881b4a95255e2ca19abfb4bcc42 (diff) | |
download | samba-0de8811a59258774a1df3756b7071c0b4a2f2902.tar.gz samba-0de8811a59258774a1df3756b7071c0b4a2f2902.tar.bz2 samba-0de8811a59258774a1df3756b7071c0b4a2f2902.zip |
s4-netlogon: merge netr_AccountSync from s3 idl.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/netlogon.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index 5eeae67a04..2e9800fede 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -859,18 +859,34 @@ static bool test_AccountSync(struct torture_context *tctx, struct dcerpc_pipe *p struct netr_AccountSync r; struct creds_CredentialState *creds; + struct netr_AccountBuffer buffer; + uint32_t count_returned = 0; + uint32_t total_entries = 0; + uint32_t next_reference = 0; + struct netr_UAS_INFO_0 recordid; + struct netr_Authenticator return_authenticator; + + ZERO_STRUCT(recordid); + ZERO_STRUCT(return_authenticator); + if (!test_SetupCredentials(p, tctx, machine_credentials, &creds)) { return false; } r.in.logon_server = talloc_asprintf(tctx, "\\\\%s", dcerpc_server_name(p)); r.in.computername = TEST_MACHINE_NAME; - ZERO_STRUCT(r.in.return_authenticator); + r.in.return_authenticator = &return_authenticator; creds_client_authenticator(creds, &r.in.credential); - ZERO_STRUCT(r.in.recordid); + r.in.recordid = &recordid; r.in.reference=0; r.in.level=0; r.in.buffersize=100; + r.out.buffer = &buffer; + r.out.count_returned = &count_returned; + r.out.total_entries = &total_entries; + r.out.next_reference = &next_reference; + r.out.recordid = &recordid; + r.out.return_authenticator = &return_authenticator; /* w2k3 returns "NOT IMPLEMENTED" for this call */ status = dcerpc_netr_AccountSync(p, tctx, &r); |