summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_samr.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-04 23:27:22 +0100
committerGünther Deschner <gd@samba.org>2008-02-05 09:58:16 +0100
commit0bdb2d42bba0c7b88a71bf9f049bed21c050eab7 (patch)
tree1507db35d63a1b1760df524c81ab5a9c49b3fe50 /source3/rpc_server/srv_samr.c
parente5f049887d49910c0e88920d8e70ed6ab420a21d (diff)
downloadsamba-0bdb2d42bba0c7b88a71bf9f049bed21c050eab7.tar.gz
samba-0bdb2d42bba0c7b88a71bf9f049bed21c050eab7.tar.bz2
samba-0bdb2d42bba0c7b88a71bf9f049bed21c050eab7.zip
Use pidl for _samr_DeleteAliasMember().
Guenther (This used to be commit 51f5bcfd39b169866a13bb5b7878f99dc2b89462)
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 211b9cd661..84bcff687f 100644
--- a/source3/rpc_server/srv_samr.c
+++ b/source3/rpc_server/srv_samr.c
@@ -759,28 +759,7 @@ static bool api_samr_add_aliasmem(pipes_struct *p)
static bool api_samr_del_aliasmem(pipes_struct *p)
{
- SAMR_Q_DEL_ALIASMEM q_u;
- SAMR_R_DEL_ALIASMEM 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_aliasmem("", &q_u, data, 0)) {
- DEBUG(0,("api_samr_del_aliasmem: unable to unmarshall SAMR_Q_DEL_ALIASMEM.\n"));
- return False;
- }
-
- r_u.status = _samr_del_aliasmem(p, &q_u, &r_u);
-
- if (!samr_io_r_del_aliasmem("", &r_u, rdata, 0)) {
- DEBUG(0,("api_samr_del_aliasmem: unable to marshall SAMR_R_DEL_ALIASMEM.\n"));
- return False;
- }
-
- return True;
+ return proxy_samr_call(p, NDR_SAMR_DELETEALIASMEMBER);
}
/*******************************************************************