diff options
author | Günther Deschner <gd@samba.org> | 2008-02-01 14:49:23 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-01 16:29:20 +0100 |
commit | 6e74a5dba33f8be671fddce367ef341c9c2fe6bc (patch) | |
tree | d4017e0c1afe89f0aa1cecdbfe21083f5239cff4 /source3/rpc_server/srv_samr.c | |
parent | d3b25867f5259575072e8f1245c54c6eaee081c4 (diff) | |
download | samba-6e74a5dba33f8be671fddce367ef341c9c2fe6bc.tar.gz samba-6e74a5dba33f8be671fddce367ef341c9c2fe6bc.tar.bz2 samba-6e74a5dba33f8be671fddce367ef341c9c2fe6bc.zip |
Use pidl for _samr_CreateDomainGroup().
Guenther
(This used to be commit c53bfd74251398924a1fae0fd8d9020dba958ba1)
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 1ab8a318b2..b7d322884a 100644 --- a/source3/rpc_server/srv_samr.c +++ b/source3/rpc_server/srv_samr.c @@ -1072,28 +1072,7 @@ static bool api_samr_delete_dom_alias(pipes_struct *p) static bool api_samr_create_dom_group(pipes_struct *p) { - SAMR_Q_CREATE_DOM_GROUP q_u; - SAMR_R_CREATE_DOM_GROUP 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_create_dom_group("", &q_u, data, 0)) { - DEBUG(0,("api_samr_create_dom_group: unable to unmarshall SAMR_Q_CREATE_DOM_GROUP.\n")); - return False; - } - - r_u.status = _samr_create_dom_group(p, &q_u, &r_u); - - if (!samr_io_r_create_dom_group("", &r_u, rdata, 0)) { - DEBUG(0,("api_samr_create_dom_group: unable to marshall SAMR_R_CREATE_DOM_GROUP.\n")); - return False; - } - - return True; + return proxy_samr_call(p, NDR_SAMR_CREATEDOMAINGROUP); } /******************************************************************* |