From adf23c651b120d3bfe67a551d0569705831999b8 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 30 May 2007 10:24:40 +0000 Subject: r23240: Fill in netr_DsrGetDcSiteCoverageW. Guenther (This used to be commit 9c2b9642336ed954c8f9fc0ccce95547d7c18aa8) --- source4/torture/rpc/netlogon.c | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'source4/torture') diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index 967b615bc36..2c566d38ce0 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -594,7 +594,6 @@ BOOL test_netlogon_ops(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, } - return ret; } @@ -1318,6 +1317,30 @@ static BOOL test_netr_DsRGetDCNameEx2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx return ret; } +static BOOL test_netr_DsrGetDcSiteCoverageW(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) +{ + NTSTATUS status; + struct netr_DsrGetDcSiteCoverageW r; + BOOL ret = True; + + if (lp_parm_bool(-1, "torture", "samba4", False)) { + printf("skipping DsrGetDcSiteCoverageW test against Samba4\n"); + return True; + } + + r.in.server_name = ""; + printf("Testing netr_DsrGetDcSiteCoverageW\n"); + + status = dcerpc_netr_DsrGetDcSiteCoverageW(p, mem_ctx, &r); + if (!NT_STATUS_IS_OK(status) || !W_ERROR_IS_OK(r.out.result)) { + printf("netr_DsrGetDcSiteCoverageW - %s/%s\n", + nt_errstr(status), win_errstr(r.out.result)); + ret = False; + } + return ret; +} + + static BOOL test_GetDomainInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) { NTSTATUS status; @@ -1605,6 +1628,7 @@ BOOL torture_rpc_netlogon(struct torture_context *torture) ret &= test_netr_DsRGetDCName(p, mem_ctx); ret &= test_netr_DsRGetDCNameEx(p, mem_ctx); ret &= test_netr_DsRGetDCNameEx2(p, mem_ctx); + ret &= test_netr_DsrGetDcSiteCoverageW(p, mem_ctx); talloc_free(mem_ctx); -- cgit