diff options
author | Luke Leighton <lkcl@samba.org> | 1997-10-24 13:51:17 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1997-10-24 13:51:17 +0000 |
commit | be0f2e14b5d32fe29b57e4c80f8da5c9cfa66e60 (patch) | |
tree | bf22180552fa3b7ef296284c81bc9fd6d5a45d47 /source3/pipenetlog.c | |
parent | a12f04753348e6d52df1f9a2359794deacfc9007 (diff) | |
download | samba-be0f2e14b5d32fe29b57e4c80f8da5c9cfa66e60.tar.gz samba-be0f2e14b5d32fe29b57e4c80f8da5c9cfa66e60.tar.xz samba-be0f2e14b5d32fe29b57e4c80f8da5c9cfa66e60.zip |
nmblib.c :
adding some debug info
pipenetlog.c pipentlsa.c pipesrvsvc.c :
using unistrn2 instead of unistr2 in the SAM logon username.
wrong offset for command in request (use "reserved" field
not cancel_count. AGH i'll get there)
(This used to be commit 6d301d2cfd25b18ba18685d926d7a5bc08695b6d)
Diffstat (limited to 'source3/pipenetlog.c')
-rw-r--r-- | source3/pipenetlog.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/pipenetlog.c b/source3/pipenetlog.c index 9b9afdb050..87337180c6 100644 --- a/source3/pipenetlog.c +++ b/source3/pipenetlog.c @@ -520,13 +520,15 @@ static void api_lsa_sam_logon( user_struct *vuser, extern pstring myname; uint32 r_uid; uint32 r_gid; + UNISTR2 *uni_samlogon_user = &(q_l.sam_id.auth.id1.uni_user_name); dummy_time.low = 0xffffffff; dummy_time.high = 0x7fffffff; get_myname(myname, NULL); - pstrcpy(samlogon_user, unistr2(q_l.sam_id.auth.id1.uni_user_name.buffer)); + pstrcpy(samlogon_user, unistrn2(uni_samlogon_user->buffer, + uni_samlogon_user->uni_str_len)); DEBUG(3,("SAM Logon. Domain:[%s]. User:[%s]\n", lp_workgroup(), samlogon_user)); @@ -643,13 +645,13 @@ BOOL api_netlogrpcTNP(int cnum,int uid, char *param,char *data, return True; } - DEBUG(4,("netlogon TransactNamedPipe op %x\n",hdr.cancel_count)); + DEBUG(4,("netlogon TransactNamedPipe op %x\n",hdr.reserved)); 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.cancel_count) + switch (hdr.reserved) { case LSA_REQCHAL: { @@ -693,7 +695,7 @@ BOOL api_netlogrpcTNP(int cnum,int uid, char *param,char *data, default: { - DEBUG(4, ("**** netlogon, unknown code: %lx\n", hdr.cancel_count)); + DEBUG(4, ("**** netlogon, unknown code: %lx\n", hdr.reserved)); break; } } |