diff options
author | Tim Potter <tpot@samba.org> | 2003-11-21 03:07:02 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-11-21 03:07:02 +0000 |
commit | a20352959e0474e10dc533f7ecb876cf7a4c8723 (patch) | |
tree | 115d0f676d04069259030905c405898a728cdf16 /source4/torture/rpc | |
parent | 1d7534efd7b555a11ed81311a2163d556cb9e4a0 (diff) | |
download | samba-a20352959e0474e10dc533f7ecb876cf7a4c8723.tar.gz samba-a20352959e0474e10dc533f7ecb876cf7a4c8723.tar.bz2 samba-a20352959e0474e10dc533f7ecb876cf7a4c8723.zip |
More work on eventlog - still doesn't work. (-:
(This used to be commit 9109cb832a3807b3eee9e52c8c533e2bf0c8007a)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/eventlog.c | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/source4/torture/rpc/eventlog.c b/source4/torture/rpc/eventlog.c index 8f357e7987..14b091a0c3 100644 --- a/source4/torture/rpc/eventlog.c +++ b/source4/torture/rpc/eventlog.c @@ -21,6 +21,13 @@ #include "includes.h" +static void init_eventlog_String(struct eventlog_String *name, const char *s) +{ + name->name = s; + name->name_len = 2*strlen_m(s); + name->name_size = name->name_len; +} + BOOL test_CloseEventLog(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct policy_handle *handle) { @@ -44,12 +51,19 @@ static BOOL test_OpenEventLog(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) { NTSTATUS status; struct eventlog_OpenEventLog r; + struct eventlog_OpenUnknown0 unknown0; struct policy_handle handle; printf("\ntesting OpenEventLog\n"); - r.in.servername = dcerpc_server_name(p); - r.out.handle = &handle; + unknown0.unknown0 = 0x005c; + unknown0.unknown1 = 0x0001; + + r.in.unknown0 = &unknown0; + init_eventlog_String(&r.in.source, "system"); + init_eventlog_String(&r.in.unknown1, NULL); + r.in.unknown2 = 0x00000001; + r.in.unknown3 = 0x00000001; status = dcerpc_eventlog_OpenEventLog(p, mem_ctx, &r); @@ -74,9 +88,9 @@ BOOL torture_rpc_eventlog(int dummy) mem_ctx = talloc_init("torture_rpc_atsvc"); status = torture_rpc_connection(&p, - DCERPC_ATSVC_NAME, - DCERPC_ATSVC_UUID, - DCERPC_ATSVC_VERSION); + DCERPC_EVENTLOG_NAME, + DCERPC_EVENTLOG_UUID, + DCERPC_EVENTLOG_VERSION); if (!NT_STATUS_IS_OK(status)) { return False; } |