summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_samr.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-04 18:36:44 +0100
committerGünther Deschner <gd@samba.org>2008-02-04 18:41:46 +0100
commit062820eaee624ac1c02e695d26b5ad4a0b0f66d9 (patch)
treefb8459e140133f3e7e0a1e70a37d2d4804b200c3 /source3/rpc_server/srv_samr.c
parentc01a62c4d637adedd4e0e41b5f36e2e3ac6f5357 (diff)
downloadsamba-062820eaee624ac1c02e695d26b5ad4a0b0f66d9.tar.gz
samba-062820eaee624ac1c02e695d26b5ad4a0b0f66d9.tar.bz2
samba-062820eaee624ac1c02e695d26b5ad4a0b0f66d9.zip
Use pidl for _samr_AddGroupMember().
Guenther (This used to be commit 4f923d970eac5841d1f67dbb8fc0c1dd1fda95a3)
Diffstat (limited to 'source3/rpc_server/srv_samr.c')
-rw-r--r--source3/rpc_server/srv_samr.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c
index ddefa569cf..15cbf4cb61 100644
--- a/source3/rpc_server/srv_samr.c
+++ b/source3/rpc_server/srv_samr.c
@@ -810,28 +810,7 @@ static bool api_samr_del_aliasmem(pipes_struct *p)
static bool api_samr_add_groupmem(pipes_struct *p)
{
- SAMR_Q_ADD_GROUPMEM q_u;
- SAMR_R_ADD_GROUPMEM r_u;
-
- prs_struct *data = &p->in_data.data;
- prs_struct *rdata = &p->out_data.rdata;
-
- ZERO_STRUCT(q_u);
- ZERO_STRUCT(r_u);
-
- if (!samr_io_q_add_groupmem("", &q_u, data, 0)) {
- DEBUG(0,("api_samr_add_groupmem: unable to unmarshall SAMR_Q_ADD_GROUPMEM.\n"));
- return False;
- }
-
- r_u.status = _samr_add_groupmem(p, &q_u, &r_u);
-
- if (!samr_io_r_add_groupmem("", &r_u, rdata, 0)) {
- DEBUG(0,("api_samr_add_groupmem: unable to marshall SAMR_R_ADD_GROUPMEM.\n"));
- return False;
- }
-
- return True;
+ return proxy_samr_call(p, NDR_SAMR_ADDGROUPMEMBER);
}
/*******************************************************************