summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-11-04 19:46:24 +0100
committerGünther Deschner <gd@samba.org>2008-11-10 21:46:27 +0100
commit5ae9ec3d4b0e8c272256994241ad3c82f3f88c31 (patch)
treeb943d955a8bf86004b764d435f1d2b9e1803f252 /source4
parente0a6e3b23be2be33a18938e4a3fe58157711e805 (diff)
downloadsamba-5ae9ec3d4b0e8c272256994241ad3c82f3f88c31.tar.gz
samba-5ae9ec3d4b0e8c272256994241ad3c82f3f88c31.tar.bz2
samba-5ae9ec3d4b0e8c272256994241ad3c82f3f88c31.zip
s4-samr: merge samr_GetDisplayEnumerationIndex from s3 idl.
Guenther
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/samr.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index 99164a23a3..e9daa63f6c 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -3462,14 +3462,19 @@ static bool test_GetDisplayEnumerationIndex(struct dcerpc_pipe *p, TALLOC_CTX *m
bool ret = true;
uint16_t levels[] = {1, 2, 3, 4, 5};
uint16_t ok_lvl[] = {1, 1, 1, 0, 0};
+ struct lsa_String name;
+ uint32_t idx = 0;
int i;
for (i=0;i<ARRAY_SIZE(levels);i++) {
printf("Testing GetDisplayEnumerationIndex level %u\n", levels[i]);
+ init_lsa_String(&name, TEST_ACCOUNT_NAME);
+
r.in.domain_handle = handle;
r.in.level = levels[i];
- init_lsa_String(&r.in.name, TEST_ACCOUNT_NAME);
+ r.in.name = &name;
+ r.out.idx = &idx;
status = dcerpc_samr_GetDisplayEnumerationIndex(p, mem_ctx, &r);
@@ -3481,7 +3486,7 @@ static bool test_GetDisplayEnumerationIndex(struct dcerpc_pipe *p, TALLOC_CTX *m
ret = false;
}
- init_lsa_String(&r.in.name, "zzzzzzzz");
+ init_lsa_String(&name, "zzzzzzzz");
status = dcerpc_samr_GetDisplayEnumerationIndex(p, mem_ctx, &r);