From b1d3d75c681d99f84aa2c60863597e32cdd24e66 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 31 Oct 2005 02:46:15 +0000 Subject: r11404: Another torture test and a new WERR. Andrew Bartlett (This used to be commit de83b8cd187b28ecb30550c44f9f84e373df692e) --- source4/torture/rpc/netlogon.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source4/torture') diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index 8993969098..a02f670439 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -1136,6 +1136,19 @@ static BOOL test_netr_DsRGetSiteName(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, ret = False; } } + r.in.computer_name = talloc_asprintf(mem_ctx, "\\\\%s", computer_name); + printf("Testing netr_DsRGetSiteName with broken computer name: %s\n", r.in.computer_name); + + status = dcerpc_netr_DsRGetSiteName(p, mem_ctx, &r); + if (!NT_STATUS_IS_OK(status)) { + printf("netr_DsRGetSiteName - %s\n", + nt_errstr(status)); + ret = False; + } else if (!W_ERROR_EQUAL(r.out.result, WERR_INVALID_COMPUTERNAME)) { + printf("netr_DsRGetSiteName - incorrect error return %s, expected %s\n", + win_errstr(r.out.result), win_errstr(WERR_INVALID_COMPUTERNAME)); + ret = False; + } return ret; } -- cgit