summaryrefslogtreecommitdiff
path: root/source4/winbind
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-11-05 10:58:35 +0100
committerGünther Deschner <gd@samba.org>2008-11-10 21:46:29 +0100
commit68a2ca11dc6b99d9127e964642e7d018acac0881 (patch)
tree8fa94692f82f5fe70317112a4bd4c05dbf5d419c /source4/winbind
parentf20dd953ef902e3dcd2131df9f1cfaaa4436e857 (diff)
downloadsamba-68a2ca11dc6b99d9127e964642e7d018acac0881.tar.gz
samba-68a2ca11dc6b99d9127e964642e7d018acac0881.tar.bz2
samba-68a2ca11dc6b99d9127e964642e7d018acac0881.zip
s4-samr: merge samr_GetGroupsForUser from s3 idl. (fixme: python)
Guenther
Diffstat (limited to 'source4/winbind')
-rw-r--r--source4/winbind/wb_async_helpers.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/winbind/wb_async_helpers.c b/source4/winbind/wb_async_helpers.c
index 48a2a4d882..a50a0fe473 100644
--- a/source4/winbind/wb_async_helpers.c
+++ b/source4/winbind/wb_async_helpers.c
@@ -325,6 +325,8 @@ struct samr_getuserdomgroups_state {
int num_rids;
uint32_t *rids;
+ struct samr_RidWithAttributeArray *rid_array;
+
struct policy_handle *user_handle;
struct samr_OpenUser o;
struct samr_GetGroupsForUser g;
@@ -386,6 +388,7 @@ static void samr_usergroups_recv_open(struct rpc_request *req)
if (!composite_is_ok(state->ctx)) return;
state->g.in.user_handle = state->user_handle;
+ state->g.out.rids = &state->rid_array;
req = dcerpc_samr_GetGroupsForUser_send(state->samr_pipe, state,
&state->g);
@@ -438,7 +441,7 @@ NTSTATUS wb_samr_userdomgroups_recv(struct composite_context *ctx,
NTSTATUS status = composite_wait(ctx);
if (!NT_STATUS_IS_OK(status)) goto done;
- *num_rids = state->g.out.rids->count;
+ *num_rids = state->rid_array->count;
*rids = talloc_array(mem_ctx, uint32_t, *num_rids);
if (*rids == NULL) {
status = NT_STATUS_NO_MEMORY;
@@ -446,7 +449,7 @@ NTSTATUS wb_samr_userdomgroups_recv(struct composite_context *ctx,
}
for (i=0; i<*num_rids; i++) {
- (*rids)[i] = state->g.out.rids->rids[i].rid;
+ (*rids)[i] = state->rid_array->rids[i].rid;
}
done: