diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-12-14 05:32:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:07:25 -0500 |
commit | 02f7d260a22814945ea536fc81906f99899eb60b (patch) | |
tree | 941fd9a206bb943b64a3788a89fd7571f1f5a4dd /source4/torture/rpc | |
parent | 9927ffd600fcccb918a0ff9ff56c79faf099ad3e (diff) | |
download | samba-02f7d260a22814945ea536fc81906f99899eb60b.tar.gz samba-02f7d260a22814945ea536fc81906f99899eb60b.tar.bz2 samba-02f7d260a22814945ea536fc81906f99899eb60b.zip |
r4195: added IDL, test suite and server side code for lsa_LookupPrivValue
(This used to be commit 7bddd4740332017bb5f4bddcc9ba0234d05378bd)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/lsa.c | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c index f816b5dc1a..84fd246538 100644 --- a/source4/torture/rpc/lsa.c +++ b/source4/torture/rpc/lsa.c @@ -283,7 +283,7 @@ static BOOL test_many_LookupSids(struct dcerpc_pipe *p, names.count = 0; names.names = NULL; - sids.num_sids = 1000; + sids.num_sids = 100; sids.sids = talloc_array_p(mem_ctx, struct lsa_SidPtr, sids.num_sids); @@ -317,6 +317,26 @@ static BOOL test_many_LookupSids(struct dcerpc_pipe *p, return True; } +static BOOL test_LookupPrivValue(struct dcerpc_pipe *p, + TALLOC_CTX *mem_ctx, + struct policy_handle *handle, + struct lsa_String *name) +{ + NTSTATUS status; + struct lsa_LookupPrivValue r; + + r.in.handle = handle; + r.in.name = name; + + status = dcerpc_lsa_LookupPrivValue(p, mem_ctx, &r); + if (!NT_STATUS_IS_OK(status)) { + printf("\nLookupPrivValue failed - %s\n", nt_errstr(status)); + return False; + } + + return True; +} + static BOOL test_LookupPrivName(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct policy_handle *handle, @@ -805,7 +825,7 @@ static BOOL test_EnumPrivs(struct dcerpc_pipe *p, r.in.handle = handle; r.in.resume_handle = &resume_handle; - r.in.max_count = 1000; + r.in.max_count = 100; r.out.resume_handle = &resume_handle; r.out.privs = &privs1; @@ -818,6 +838,7 @@ static BOOL test_EnumPrivs(struct dcerpc_pipe *p, for (i = 0; i< privs1.count; i++) { test_LookupPrivDisplayName(p, mem_ctx, handle, &privs1.privs[i].name); + test_LookupPrivValue(p, mem_ctx, handle, &privs1.privs[i].name); if (!test_EnumAccountsWithUserRight(p, mem_ctx, handle, &privs1.privs[i].name)) { ret = False; } @@ -842,7 +863,7 @@ static BOOL test_EnumTrustDom(struct dcerpc_pipe *p, r.in.handle = handle; r.in.resume_handle = &resume_handle; - r.in.num_entries = 1000; + r.in.num_entries = 100; r.out.domains = &domains; r.out.resume_handle = &resume_handle; |