diff options
author | Günther Deschner <gd@samba.org> | 2008-02-06 12:57:59 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-07 11:03:26 +0100 |
commit | cdb5f49849270b2e1f687fd5cfcbc1461dfd2672 (patch) | |
tree | 571c6e4b40a329fc0baf19f6be6230e3c341dd05 /source3/rpc_server/srv_samr.c | |
parent | 009d09dcaef63ee131a5b00489b779e7e59c970c (diff) | |
download | samba-cdb5f49849270b2e1f687fd5cfcbc1461dfd2672.tar.gz samba-cdb5f49849270b2e1f687fd5cfcbc1461dfd2672.tar.bz2 samba-cdb5f49849270b2e1f687fd5cfcbc1461dfd2672.zip |
Use pidl for _samr_SetGroupInfo().
Guenther
(This used to be commit a576d9e80dffb15e29c3bf4da225bbe34f77053c)
Diffstat (limited to 'source3/rpc_server/srv_samr.c')
-rw-r--r-- | source3/rpc_server/srv_samr.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c index a38e9461c4..2fea3c17b0 100644 --- a/source3/rpc_server/srv_samr.c +++ b/source3/rpc_server/srv_samr.c @@ -714,28 +714,7 @@ static bool api_samr_query_groupinfo(pipes_struct *p) static bool api_samr_set_groupinfo(pipes_struct *p) { - SAMR_Q_SET_GROUPINFO q_u; - SAMR_R_SET_GROUPINFO 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_set_groupinfo("", &q_u, data, 0)) { - DEBUG(0,("api_samr_set_groupinfo: unable to unmarshall SAMR_Q_SET_GROUPINFO.\n")); - return False; - } - - r_u.status = _samr_set_groupinfo(p, &q_u, &r_u); - - if (!samr_io_r_set_groupinfo("", &r_u, rdata, 0)) { - DEBUG(0,("api_samr_set_groupinfo: unable to marshall SAMR_R_SET_GROUPINFO.\n")); - return False; - } - - return True; + return proxy_samr_call(p, NDR_SAMR_SETGROUPINFO); } /******************************************************************* |