summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_netlog.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-15 21:24:39 +0100
committerGünther Deschner <gd@samba.org>2008-02-15 21:32:14 +0100
commit55b2292abace1d12b04fb47a61daab26923f887c (patch)
tree187ba6755c902b5d9b85b039e0bf984b0f7dd8b7 /source3/rpc_server/srv_netlog.c
parent4f0b904538b376ed117fc23b6e34fbed37141437 (diff)
downloadsamba-55b2292abace1d12b04fb47a61daab26923f887c.tar.gz
samba-55b2292abace1d12b04fb47a61daab26923f887c.tar.bz2
samba-55b2292abace1d12b04fb47a61daab26923f887c.zip
Use pidl for _netr_ServerAuthenticate().
Guenther (This used to be commit 943386c5dd601f5c8cf85bfcb08f731dd5a6437d)
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 60688d201d..7f67fe51f0 100644
--- a/source3/rpc_server/srv_netlog.c
+++ b/source3/rpc_server/srv_netlog.c
@@ -64,29 +64,7 @@ static bool api_net_req_chal(pipes_struct *p)
static bool api_net_auth(pipes_struct *p)
{
- NET_Q_AUTH q_u;
- NET_R_AUTH 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 challenge... */
- if(!net_io_q_auth("", &q_u, data, 0)) {
- DEBUG(0,("api_net_auth: Failed to unmarshall NET_Q_AUTH.\n"));
- return False;
- }
-
- r_u.status = _net_auth(p, &q_u, &r_u);
-
- /* store the response in the SMB stream */
- if(!net_io_r_auth("", &r_u, rdata, 0)) {
- DEBUG(0,("api_net_auth: Failed to marshall NET_R_AUTH.\n"));
- return False;
- }
-
- return True;
+ return proxy_netr_call(p, NDR_NETR_SERVERAUTHENTICATE);
}
/*************************************************************************