diff options
author | Günther Deschner <gd@samba.org> | 2008-02-12 03:15:03 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-12 10:00:37 +0100 |
commit | fff3f99b5ab53d489b0cccf1b14a2e0725272b5b (patch) | |
tree | d4439e8a110b0b13c1692aabb8318965d4514cd1 /source3/rpc_server/srv_samr.c | |
parent | 2d4d27c0d459b8463636d8bdfb8bc4a97c00fa7b (diff) | |
download | samba-fff3f99b5ab53d489b0cccf1b14a2e0725272b5b.tar.gz samba-fff3f99b5ab53d489b0cccf1b14a2e0725272b5b.tar.bz2 samba-fff3f99b5ab53d489b0cccf1b14a2e0725272b5b.zip |
Use pidl for _samr_EnumDomainGroups() and _samr_EnumDomainAliases().
Guenther
(This used to be commit 327cdb05af80a884517e7baf97300da0a635a451)
Diffstat (limited to 'source3/rpc_server/srv_samr.c')
-rw-r--r-- | source3/rpc_server/srv_samr.c | 48 |
1 files changed, 2 insertions, 46 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c index 8d626fced9..af46469e06 100644 --- a/source3/rpc_server/srv_samr.c +++ b/source3/rpc_server/srv_samr.c @@ -138,29 +138,7 @@ static bool api_samr_enum_dom_users(pipes_struct *p) static bool api_samr_enum_dom_groups(pipes_struct *p) { - SAMR_Q_ENUM_DOM_GROUPS q_u; - SAMR_R_ENUM_DOM_GROUPS r_u; - prs_struct *data = &p->in_data.data; - prs_struct *rdata = &p->out_data.rdata; - - ZERO_STRUCT(q_u); - ZERO_STRUCT(r_u); - - /* grab the samr open */ - if(!samr_io_q_enum_dom_groups("", &q_u, data, 0)) { - DEBUG(0,("api_samr_enum_dom_groups: unable to unmarshall SAMR_Q_ENUM_DOM_GROUPS.\n")); - return False; - } - - r_u.status = _samr_enum_dom_groups(p, &q_u, &r_u); - - /* store the response in the SMB stream */ - if(!samr_io_r_enum_dom_groups("", &r_u, rdata, 0)) { - DEBUG(0,("api_samr_enum_dom_groups: unable to marshall SAMR_R_ENUM_DOM_GROUPS.\n")); - return False; - } - - return True; + return proxy_samr_call(p, NDR_SAMR_ENUMDOMAINGROUPS); } /******************************************************************* @@ -169,29 +147,7 @@ static bool api_samr_enum_dom_groups(pipes_struct *p) static bool api_samr_enum_dom_aliases(pipes_struct *p) { - SAMR_Q_ENUM_DOM_ALIASES q_u; - SAMR_R_ENUM_DOM_ALIASES r_u; - prs_struct *data = &p->in_data.data; - prs_struct *rdata = &p->out_data.rdata; - - ZERO_STRUCT(q_u); - ZERO_STRUCT(r_u); - - /* grab the samr open */ - if(!samr_io_q_enum_dom_aliases("", &q_u, data, 0)) { - DEBUG(0,("api_samr_enum_dom_aliases: unable to unmarshall SAMR_Q_ENUM_DOM_ALIASES.\n")); - return False; - } - - r_u.status = _samr_enum_dom_aliases(p, &q_u, &r_u); - - /* store the response in the SMB stream */ - if(!samr_io_r_enum_dom_aliases("", &r_u, rdata, 0)) { - DEBUG(0,("api_samr_enum_dom_aliases: unable to marshall SAMR_R_ENUM_DOM_ALIASES.\n")); - return False; - } - - return True; + return proxy_samr_call(p, NDR_SAMR_ENUMDOMAINALIASES); } /******************************************************************* |