diff options
author | Günther Deschner <gd@samba.org> | 2008-02-15 21:46:42 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-15 21:52:19 +0100 |
commit | 5bce07977a18cd6bfd4714030707d3b2643cd840 (patch) | |
tree | cad9352aa7c7de8bba3d19f8258e1a77e37bad7e /source3/rpc_server/srv_netlog.c | |
parent | c9f1f3d5ff07224e0da3df759215e7680893812e (diff) | |
download | samba-5bce07977a18cd6bfd4714030707d3b2643cd840.tar.gz samba-5bce07977a18cd6bfd4714030707d3b2643cd840.tar.bz2 samba-5bce07977a18cd6bfd4714030707d3b2643cd840.zip |
Use pidl for _netr_LogonSamLogoff().
Guenther
(This used to be commit a9683cbf4352ce331156f40b24a481fc87854b50)
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 719cdff41c..0e386c0de3 100644 --- a/source3/rpc_server/srv_netlog.c +++ b/source3/rpc_server/srv_netlog.c @@ -91,28 +91,7 @@ static bool api_net_srv_pwset(pipes_struct *p) static bool api_net_sam_logoff(pipes_struct *p) { - NET_Q_SAM_LOGOFF q_u; - NET_R_SAM_LOGOFF 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(!net_io_q_sam_logoff("", &q_u, data, 0)) { - DEBUG(0,("api_net_sam_logoff: Failed to unmarshall NET_Q_SAM_LOGOFF.\n")); - return False; - } - - r_u.status = _net_sam_logoff(p, &q_u, &r_u); - - /* store the response in the SMB stream */ - if(!net_io_r_sam_logoff("", &r_u, rdata, 0)) { - DEBUG(0,("api_net_sam_logoff: Failed to marshall NET_R_SAM_LOGOFF.\n")); - return False; - } - - return True; + return proxy_netr_call(p, NDR_NETR_LOGONSAMLOGOFF); } /************************************************************************* |