From ad44611170d7f24544cd62424a5729aef03acd21 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 1 Sep 2005 10:36:48 +0000 Subject: r9888: add IDL for lsa_QueryDomainInformationPolicy to query Kerberos Settings. Guenther (This used to be commit d717e878bdc05b06adcc50c3527c339be8164145) --- source4/torture/rpc/lsa.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'source4/torture/rpc') diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c index f723f68a02..7630056503 100644 --- a/source4/torture/rpc/lsa.c +++ b/source4/torture/rpc/lsa.c @@ -1477,6 +1477,35 @@ static BOOL test_CreateTrustedDomain(struct dcerpc_pipe *p, return ret; } +static BOOL test_QueryDomainInfoPolicy(struct dcerpc_pipe *p, + TALLOC_CTX *mem_ctx, + struct policy_handle *handle) +{ + struct lsa_QueryDomainInformationPolicy r; + NTSTATUS status; + int i; + BOOL ret = True; + printf("\nTesting QueryDomainInformationPolicy\n"); + + for (i=2;i<4;i++) { + r.in.handle = handle; + r.in.level = i; + + printf("\ntrying QueryDomainInformationPolicy level %d\n", i); + + status = dcerpc_lsa_QueryDomainInformationPolicy(p, mem_ctx, &r); + + if (!NT_STATUS_IS_OK(status)) { + printf("QueryDomainInformationPolicy failed - %s\n", nt_errstr(status)); + ret = False; + continue; + } + } + + return ret; +} + + static BOOL test_QueryInfoPolicy(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct policy_handle *handle) @@ -1630,6 +1659,10 @@ BOOL torture_rpc_lsa(void) ret = False; } + if (!test_QueryDomainInfoPolicy(p, mem_ctx, &handle)) { + ret = False; + } + if (!test_many_LookupSids(p, mem_ctx, &handle)) { ret = False; } -- cgit