summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_samr.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-04 17:10:16 +0100
committerGünther Deschner <gd@samba.org>2008-02-04 17:53:51 +0100
commite1e8ab30f712d389a353cf32cbf8cf1083360b2a (patch)
treec3ac8e3422116b49325df1ba8824b8b638f7c41b /source3/rpc_server/srv_samr.c
parent867edaa33f7fb152447712bc405380ad6669781b (diff)
downloadsamba-e1e8ab30f712d389a353cf32cbf8cf1083360b2a.tar.gz
samba-e1e8ab30f712d389a353cf32cbf8cf1083360b2a.tar.bz2
samba-e1e8ab30f712d389a353cf32cbf8cf1083360b2a.zip
Use pidl for _samr_Connect5().
Guenther (This used to be commit ca233bfe0e5350cb699312e4937c6bd1cb43f7c1)
Diffstat (limited to 'source3/rpc_server/srv_samr.c')
-rw-r--r--source3/rpc_server/srv_samr.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c
index 73a1228b68..dd162c7479 100644
--- a/source3/rpc_server/srv_samr.c
+++ b/source3/rpc_server/srv_samr.c
@@ -519,29 +519,7 @@ static bool api_samr_chgpasswd_user3(pipes_struct *p)
static bool api_samr_connect5(pipes_struct *p)
{
- SAMR_Q_CONNECT5 q_u;
- SAMR_R_CONNECT5 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 policy */
- if(!samr_io_q_connect5("", &q_u, data, 0)) {
- DEBUG(0,("api_samr_connect5: unable to unmarshall SAMR_Q_CONNECT5.\n"));
- return False;
- }
-
- r_u.status = _samr_connect5(p, &q_u, &r_u);
-
- /* store the response in the SMB stream */
- if(!samr_io_r_connect5("", &r_u, rdata, 0)) {
- DEBUG(0,("api_samr_connect5: unable to marshall SAMR_R_CONNECT5.\n"));
- return False;
- }
-
- return True;
+ return proxy_samr_call(p, NDR_SAMR_CONNECT5);
}
/**********************************************************************