diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-09 08:30:29 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-09 08:30:29 +0000 |
commit | 44dfd039630b229ee4ea11b43fc4c3223f8b86ce (patch) | |
tree | 82ec0c3d8090b95ec7da3f78b7021d92762b7fea /source4/torture/rpc/lsa.c | |
parent | 5eb907f1d4d093f79998688a00c15b907e5d249a (diff) | |
download | samba-44dfd039630b229ee4ea11b43fc4c3223f8b86ce.tar.gz samba-44dfd039630b229ee4ea11b43fc4c3223f8b86ce.tar.bz2 samba-44dfd039630b229ee4ea11b43fc4c3223f8b86ce.zip |
- added the rest of the LSA calls as stubs
- auto-generate the client calls with 'make idl'
(This used to be commit 8e52381313fc5a603b6d7e6ff090896c772096e9)
Diffstat (limited to 'source4/torture/rpc/lsa.c')
-rw-r--r-- | source4/torture/rpc/lsa.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c index 61288b5f5b..9df5dc0078 100644 --- a/source4/torture/rpc/lsa.c +++ b/source4/torture/rpc/lsa.c @@ -271,17 +271,17 @@ static BOOL test_LookupSids(struct dcerpc_pipe *p, return True; } -static BOOL test_EnumSids(struct dcerpc_pipe *p, +static BOOL test_EnumAccounts(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct policy_handle *handle) { NTSTATUS status; - struct lsa_EnumSids r; + struct lsa_EnumAccounts r; struct lsa_SidArray sids1, sids2; uint32 resume_handle = 0; int i; - printf("\ntesting EnumSids\n"); + printf("\ntesting EnumAccounts\n"); r.in.handle = handle; r.in.resume_handle = &resume_handle; @@ -290,9 +290,9 @@ static BOOL test_EnumSids(struct dcerpc_pipe *p, r.out.sids = &sids1; resume_handle = 0; - status = dcerpc_lsa_EnumSids(p, mem_ctx, &r); + status = dcerpc_lsa_EnumAccounts(p, mem_ctx, &r); if (!NT_STATUS_IS_OK(status)) { - printf("EnumSids failed - %s\n", nt_errstr(status)); + printf("EnumAccounts failed - %s\n", nt_errstr(status)); return False; } @@ -310,14 +310,14 @@ static BOOL test_EnumSids(struct dcerpc_pipe *p, return True; } - printf("trying EnumSids partial listing (asking for 1 at 2)\n"); + printf("trying EnumAccounts partial listing (asking for 1 at 2)\n"); resume_handle = 2; r.in.num_entries = 1; r.out.sids = &sids2; - status = dcerpc_lsa_EnumSids(p, mem_ctx, &r); + status = dcerpc_lsa_EnumAccounts(p, mem_ctx, &r); if (!NT_STATUS_IS_OK(status)) { - printf("EnumSids failed - %s\n", nt_errstr(status)); + printf("EnumAccounts failed - %s\n", nt_errstr(status)); return False; } @@ -352,7 +352,7 @@ BOOL torture_rpc_lsa(int dummy) ret = False; } - if (!test_EnumSids(p, mem_ctx, &handle)) { + if (!test_EnumAccounts(p, mem_ctx, &handle)) { ret = False; } |