summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/netlogon.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-28 02:34:02 +0100
committerGünther Deschner <gd@samba.org>2008-10-29 08:57:28 +0100
commitfccd5a4dfdd02881b4a95255e2ca19abfb4bcc42 (patch)
tree536f536f816b1aa867f3ecc478f55ddd3daaf69d /source4/torture/rpc/netlogon.c
parent6f2179b0884cb3f2e4a38516d050707384c8e5ff (diff)
downloadsamba-fccd5a4dfdd02881b4a95255e2ca19abfb4bcc42.tar.gz
samba-fccd5a4dfdd02881b4a95255e2ca19abfb4bcc42.tar.bz2
samba-fccd5a4dfdd02881b4a95255e2ca19abfb4bcc42.zip
s4-netlogon: merge netr_AccountDeltas from s3 idl.
Guenther
Diffstat (limited to 'source4/torture/rpc/netlogon.c')
-rw-r--r--source4/torture/rpc/netlogon.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c
index 6580761aec..5eeae67a04 100644
--- a/source4/torture/rpc/netlogon.c
+++ b/source4/torture/rpc/netlogon.c
@@ -816,18 +816,31 @@ static bool test_AccountDeltas(struct torture_context *tctx,
struct netr_AccountDeltas r;
struct creds_CredentialState *creds;
+ struct netr_AccountBuffer buffer;
+ uint32_t count_returned = 0;
+ uint32_t total_entries = 0;
+ struct netr_UAS_INFO_0 recordid;
+ struct netr_Authenticator return_authenticator;
+
if (!test_SetupCredentials(p, tctx, machine_credentials, &creds)) {
return false;
}
+ ZERO_STRUCT(return_authenticator);
+
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.uas);
r.in.count=10;
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.recordid = &recordid;
+ r.out.return_authenticator = &return_authenticator;
/* w2k3 returns "NOT IMPLEMENTED" for this call */
status = dcerpc_netr_AccountDeltas(p, tctx, &r);