diff options
author | Luke Leighton <lkcl@samba.org> | 1997-10-24 13:15:34 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1997-10-24 13:15:34 +0000 |
commit | a12f04753348e6d52df1f9a2359794deacfc9007 (patch) | |
tree | 1b4afcd5c0819d7486504510b6681644101c7ebe /source3/pipenetlog.c | |
parent | abb255cfe674a39c6a42f5083af9c5facdbcca05 (diff) | |
download | samba-a12f04753348e6d52df1f9a2359794deacfc9007.tar.gz samba-a12f04753348e6d52df1f9a2359794deacfc9007.tar.bz2 samba-a12f04753348e6d52df1f9a2359794deacfc9007.zip |
nterr.c :
added a structure that wraps nt errors as strings and enums, so we
can do a smb_nt_error() function.
Makefile ntclient.c :
added ntclient.c, broken out nt domain stuff into a separate file.
getting fed up of compile-times and size of client.c.
fixed the do_lsa_req_chal() function. made it read the response,
and return the challenge credentials received from the server.
next stop: do_lsa_auth_2().
client.c :
removed nt domain logon functions into a separate file.
pipenetlog.c pipentlsa.c pipesrvsvc.c smbparse.c :
i'd broken the offsets of the RPC_HDR while trying to sort out the
nt client code. fixed it again. added some robustness stuff.
util.c :
the unistrn2() function was null-terminating the string at one
character too many.
(This used to be commit 39cec7f698c4461aee05cfbb213879fbd486117d)
Diffstat (limited to 'source3/pipenetlog.c')
-rw-r--r-- | source3/pipenetlog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/pipenetlog.c b/source3/pipenetlog.c index ee00eee0ed..9b9afdb050 100644 --- a/source3/pipenetlog.c +++ b/source3/pipenetlog.c @@ -634,7 +634,7 @@ BOOL api_netlogrpcTNP(int cnum,int uid, char *param,char *data, return False; } - smb_io_rpc_hdr(True, &hdr, data, data, 4, 5); + smb_io_rpc_hdr(True, &hdr, data, data, 4, 0); if (hdr.pkt_type == RPC_BIND) /* RPC BIND */ { @@ -643,13 +643,13 @@ BOOL api_netlogrpcTNP(int cnum,int uid, char *param,char *data, return True; } - DEBUG(4,("netlogon TransactNamedPipe op %x\n",hdr.reserved)); + DEBUG(4,("netlogon TransactNamedPipe op %x\n",hdr.cancel_count)); if ((vuser = get_valid_user_struct(uid)) == NULL) return False; DEBUG(3,("Username of UID %d is %s\n", vuser->uid, vuser->name)); - switch (hdr.reserved) + switch (hdr.cancel_count) { case LSA_REQCHAL: { @@ -693,7 +693,7 @@ BOOL api_netlogrpcTNP(int cnum,int uid, char *param,char *data, default: { - DEBUG(4, ("**** netlogon, unknown code: %lx\n", hdr.reserved)); + DEBUG(4, ("**** netlogon, unknown code: %lx\n", hdr.cancel_count)); break; } } |