summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_samr.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-04 18:09:35 +0100
committerGünther Deschner <gd@samba.org>2008-02-04 18:32:24 +0100
commit4906b5037d09beceee67a455177269215c140206 (patch)
tree88beb3a70ffc0f0999ddf93159066f3b6eb771b7 /source3/rpc_server/srv_samr.c
parent381132872b72c054ed6d51b9d840194a5b3f877d (diff)
downloadsamba-4906b5037d09beceee67a455177269215c140206.tar.gz
samba-4906b5037d09beceee67a455177269215c140206.tar.bz2
samba-4906b5037d09beceee67a455177269215c140206.zip
Use pidl for _samr_DeleteGroupMember().
Guenther (This used to be commit 94d6536809266ea3a12cd255fb7f2f7a70c42da3)
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 dd162c7479..ddefa569cf 100644
--- a/source3/rpc_server/srv_samr.c
+++ b/source3/rpc_server/srv_samr.c
@@ -840,28 +840,7 @@ static bool api_samr_add_groupmem(pipes_struct *p)
static bool api_samr_del_groupmem(pipes_struct *p)
{
- SAMR_Q_DEL_GROUPMEM q_u;
- SAMR_R_DEL_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_del_groupmem("", &q_u, data, 0)) {
- DEBUG(0,("api_samr_del_groupmem: unable to unmarshall SAMR_Q_DEL_GROUPMEM.\n"));
- return False;
- }
-
- r_u.status = _samr_del_groupmem(p, &q_u, &r_u);
-
- if (!samr_io_r_del_groupmem("", &r_u, rdata, 0)) {
- DEBUG(0,("api_samr_del_groupmem: unable to marshall SAMR_R_DEL_GROUPMEM.\n"));
- return False;
- }
-
- return True;
+ return proxy_samr_call(p, NDR_SAMR_DELETEGROUPMEMBER);
}
/*******************************************************************