diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-23 23:31:09 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-23 23:31:09 +0000 |
commit | 3e4c6d130c3c533831ac6a52e2403132b79f4b28 (patch) | |
tree | ba71663afad9645f7d0392190621c28dd96662c0 /source3/rpc_server/srv_netlog.c | |
parent | 30daf2e939b6dbc50e9389f26f3b1f4a4d6d5c2e (diff) | |
download | samba-3e4c6d130c3c533831ac6a52e2403132b79f4b28.tar.gz samba-3e4c6d130c3c533831ac6a52e2403132b79f4b28.tar.bz2 samba-3e4c6d130c3c533831ac6a52e2403132b79f4b28.zip |
Fix "proc num out of range" error. Missing rpc call.
Jeremy.
(This used to be commit 6248fb22926d72fddaecad5af117af1bdd08fda3)
Diffstat (limited to 'source3/rpc_server/srv_netlog.c')
-rw-r--r-- | source3/rpc_server/srv_netlog.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_netlog.c b/source3/rpc_server/srv_netlog.c index 01d646bf57..4c13ad0c67 100644 --- a/source3/rpc_server/srv_netlog.c +++ b/source3/rpc_server/srv_netlog.c @@ -60,6 +60,37 @@ static BOOL api_net_req_chal(pipes_struct *p) } /************************************************************************* + api_net_auth: + *************************************************************************/ + +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; +} + +/************************************************************************* api_net_auth_2: *************************************************************************/ @@ -257,6 +288,7 @@ static BOOL api_net_logon_ctrl2(pipes_struct *p) static struct api_struct api_net_cmds [] = { { "NET_REQCHAL" , NET_REQCHAL , api_net_req_chal }, + { "NET_AUTH" , NET_AUTH , api_net_auth }, { "NET_AUTH2" , NET_AUTH2 , api_net_auth_2 }, { "NET_SRVPWSET" , NET_SRVPWSET , api_net_srv_pwset }, { "NET_SAMLOGON" , NET_SAMLOGON , api_net_sam_logon }, |