From fda5ab2f21f5d57c398eb89ba609ed43bce59bd1 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 16 Jul 2004 09:36:17 +0000 Subject: r1529: add NetSrvGetInfo torture test metze (This used to be commit 0018aeb2fe8c42e49fdcdd1ecc646b277625967d) --- source4/torture/rpc/srvsvc.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'source4/torture') diff --git a/source4/torture/rpc/srvsvc.c b/source4/torture/rpc/srvsvc.c index 460ac8c0cf..47002d3550 100644 --- a/source4/torture/rpc/srvsvc.c +++ b/source4/torture/rpc/srvsvc.c @@ -540,6 +540,44 @@ static BOOL test_NetShareEnum(struct dcerpc_pipe *p, return True; } +/**************************/ +/* srvsvc_NetSrv */ +/**************************/ +static BOOL test_NetSrvGetInfo(struct dcerpc_pipe *p, + TALLOC_CTX *mem_ctx) +{ + NTSTATUS status; + struct srvsvc_NetSrvGetInfo r; + struct srvsvc_NetSrvInfo503 i503; + uint32_t levels[] = {100, 101, 102, 502, 503}; + int i; + BOOL ret = True; + uint32_t resume_handle; + + ZERO_STRUCT(i503); + + r.in.server_unc = talloc_asprintf(mem_ctx,"\\\\%s",dcerpc_server_name(p)); + + for (i=0;i