diff options
author | Günther Deschner <gd@samba.org> | 2008-02-13 11:56:24 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-13 12:19:37 +0100 |
commit | abba82ef5b81f065169bf0ec78494b525354cc26 (patch) | |
tree | 4b11d6ab9f36e6fb062cd5d18480eec9f377576a /source3/rpc_server/srv_netlog.c | |
parent | c6acbc16a6c6dca611a624a5e9c502dfcac92f93 (diff) | |
download | samba-abba82ef5b81f065169bf0ec78494b525354cc26.tar.gz samba-abba82ef5b81f065169bf0ec78494b525354cc26.tar.bz2 samba-abba82ef5b81f065169bf0ec78494b525354cc26.zip |
Use pidl for _netr_LogonControl.
Guenther
(This used to be commit ec4947525e0881bfcde661f906ccd1f66fe54f5a)
Diffstat (limited to 'source3/rpc_server/srv_netlog.c')
-rw-r--r-- | source3/rpc_server/srv_netlog.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/source3/rpc_server/srv_netlog.c b/source3/rpc_server/srv_netlog.c index 4f0a0142e5..7faf63205e 100644 --- a/source3/rpc_server/srv_netlog.c +++ b/source3/rpc_server/srv_netlog.c @@ -279,28 +279,7 @@ static bool api_net_logon_ctrl2(pipes_struct *p) static bool api_net_logon_ctrl(pipes_struct *p) { - NET_Q_LOGON_CTRL q_u; - NET_R_LOGON_CTRL 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 ctrl query... */ - if(!net_io_q_logon_ctrl("", &q_u, data, 0)) { - DEBUG(0,("api_net_logon_ctrl: Failed to unmarshall NET_Q_LOGON_CTRL.\n")); - return False; - } - - r_u.status = _net_logon_ctrl(p, &q_u, &r_u); - - if(!net_io_r_logon_ctrl("", &r_u, rdata, 0)) { - DEBUG(0,("net_reply_logon_ctrl2: Failed to marshall NET_R_LOGON_CTRL.\n")); - return False; - } - - return True; + return proxy_netr_call(p, NDR_NETR_LOGONCONTROL); } /************************************************************************* |