summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/lsa.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-11 06:22:58 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-11 06:22:58 +0000
commitbde602b9e1192945d7c0139fd4226b431fc214f2 (patch)
tree0d6c322ae65423b4b28de81d1731a48564cc01da /source4/torture/rpc/lsa.c
parentd720f3d2e40daee197a228924f2301c2c6ddd392 (diff)
downloadsamba-bde602b9e1192945d7c0139fd4226b431fc214f2.tar.gz
samba-bde602b9e1192945d7c0139fd4226b431fc214f2.tar.bz2
samba-bde602b9e1192945d7c0139fd4226b431fc214f2.zip
support lsa_AuditEventsInfo
(This used to be commit 7e7cb975936252083c5c02a64c00ee2667099c22)
Diffstat (limited to 'source4/torture/rpc/lsa.c')
-rw-r--r--source4/torture/rpc/lsa.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c
index 71c1ce2147..e3b3a2ae8d 100644
--- a/source4/torture/rpc/lsa.c
+++ b/source4/torture/rpc/lsa.c
@@ -492,21 +492,26 @@ static BOOL test_QueryInfoPolicy(struct dcerpc_pipe *p,
{
struct lsa_QueryInfoPolicy r;
NTSTATUS status;
+ int i;
+ BOOL ret = True;
printf("\nTesting QueryInfoPolicy\n");
- r.in.handle = handle;
- r.in.level = 1;
+ for (i=1;i<13;i++) {
+ r.in.handle = handle;
+ r.in.level = i;
- status = dcerpc_lsa_QueryInfoPolicy(p, mem_ctx, &r);
- if (!NT_STATUS_IS_OK(status)) {
- printf("QueryInfoPolicy failed - %s\n", nt_errstr(status));
- return False;
- }
+ status = dcerpc_lsa_QueryInfoPolicy(p, mem_ctx, &r);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("QueryInfoPolicy failed - %s\n", nt_errstr(status));
+ ret = False;
+ continue;
+ }
- NDR_PRINT_UNION_DEBUG(lsa_PolicyInformation, r.in.level, r.out.info);
+ NDR_PRINT_UNION_DEBUG(lsa_PolicyInformation, r.in.level, r.out.info);
+ }
- return True;
+ return ret;
}
static BOOL test_Delete(struct dcerpc_pipe *p,