summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_netlog.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-13 23:06:09 +0100
committerGünther Deschner <gd@samba.org>2008-02-13 23:06:09 +0100
commit7acdc9e8d6a6311983e1d3f19047293e47f92722 (patch)
tree270e5a44103d394a47ff71b50fe67507fa9614c8 /source3/rpc_server/srv_netlog.c
parent3722208ddff6386ff93d8445337442569710ff23 (diff)
downloadsamba-7acdc9e8d6a6311983e1d3f19047293e47f92722.tar.gz
samba-7acdc9e8d6a6311983e1d3f19047293e47f92722.tar.bz2
samba-7acdc9e8d6a6311983e1d3f19047293e47f92722.zip
Use pidl for _netr_LogonControl2.
Guenther (This used to be commit 4bd02aa6cdfdfd8f3b678fc81a0a1bd70cef9a67)
Diffstat (limited to 'source3/rpc_server/srv_netlog.c')
-rw-r--r--source3/rpc_server/srv_netlog.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/source3/rpc_server/srv_netlog.c b/source3/rpc_server/srv_netlog.c
index 1b23cd835a..791752c5d0 100644
--- a/source3/rpc_server/srv_netlog.c
+++ b/source3/rpc_server/srv_netlog.c
@@ -226,29 +226,7 @@ static bool api_net_trust_dom_list(pipes_struct *p)
static bool api_net_logon_ctrl2(pipes_struct *p)
{
- NET_Q_LOGON_CTRL2 q_u;
- NET_R_LOGON_CTRL2 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 lsa netlogon ctrl2 query... */
- if(!net_io_q_logon_ctrl2("", &q_u, data, 0)) {
- DEBUG(0,("api_net_logon_ctrl2: Failed to unmarshall NET_Q_LOGON_CTRL2.\n"));
- return False;
- }
-
- r_u.status = _net_logon_ctrl2(p, &q_u, &r_u);
-
- if(!net_io_r_logon_ctrl2("", &r_u, rdata, 0)) {
- DEBUG(0,("net_reply_logon_ctrl2: Failed to marshall NET_R_LOGON_CTRL2.\n"));
- return False;
- }
-
- return True;
+ return proxy_netr_call(p, NDR_NETR_LOGONCONTROL2);
}
/*************************************************************************