summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-09-01 10:36:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:36:20 -0500
commitad44611170d7f24544cd62424a5729aef03acd21 (patch)
tree9c31ea07ad0dd9849d20ccc9652a70d2d83edd44 /source4/torture/rpc
parenteb133639dc524cd03f2dd2ba24cf48cd673642f5 (diff)
downloadsamba-ad44611170d7f24544cd62424a5729aef03acd21.tar.gz
samba-ad44611170d7f24544cd62424a5729aef03acd21.tar.bz2
samba-ad44611170d7f24544cd62424a5729aef03acd21.zip
r9888: add IDL for lsa_QueryDomainInformationPolicy to query Kerberos Settings.
Guenther (This used to be commit d717e878bdc05b06adcc50c3527c339be8164145)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/lsa.c33
1 files changed, 33 insertions, 0 deletions
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;
}