summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-24 13:51:17 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-24 13:51:17 +0000
commitbe0f2e14b5d32fe29b57e4c80f8da5c9cfa66e60 (patch)
treebf22180552fa3b7ef296284c81bc9fd6d5a45d47 /source3
parenta12f04753348e6d52df1f9a2359794deacfc9007 (diff)
downloadsamba-be0f2e14b5d32fe29b57e4c80f8da5c9cfa66e60.tar.gz
samba-be0f2e14b5d32fe29b57e4c80f8da5c9cfa66e60.tar.bz2
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')
-rw-r--r--source3/libsmb/nmblib.c1
-rw-r--r--source3/pipenetlog.c10
-rw-r--r--source3/pipentlsa.c6
-rw-r--r--source3/pipesrvsvc.c6
4 files changed, 13 insertions, 10 deletions
diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c
index 121008685b..6a91b20ea8 100644
--- a/source3/libsmb/nmblib.c
+++ b/source3/libsmb/nmblib.c
@@ -697,6 +697,7 @@ BOOL send_packet(struct packet_struct *p)
{
case NMB_PACKET:
len = build_nmb(buf,p);
+ debug_nmb_packet(p);
break;
case DGRAM_PACKET:
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;
}
}
diff --git a/source3/pipentlsa.c b/source3/pipentlsa.c
index 4a65b54543..9fe6058809 100644
--- a/source3/pipentlsa.c
+++ b/source3/pipentlsa.c
@@ -317,9 +317,9 @@ BOOL api_ntLsarpcTNP(int cnum,int uid, char *param,char *data,
return True;
}
- DEBUG(4,("lsarpc TransactNamedPipe op %x\n",hdr.cancel_count));
+ DEBUG(4,("lsarpc TransactNamedPipe op %x\n",hdr.reserved));
- switch (hdr.cancel_count)
+ switch (hdr.reserved)
{
case LSA_OPENPOLICY:
{
@@ -416,7 +416,7 @@ BOOL api_ntLsarpcTNP(int cnum,int uid, char *param,char *data,
default:
{
- DEBUG(4, ("NTLSARPC, unknown code: %lx\n", hdr.cancel_count));
+ DEBUG(4, ("NTLSARPC, unknown code: %lx\n", hdr.reserved));
break;
}
}
diff --git a/source3/pipesrvsvc.c b/source3/pipesrvsvc.c
index b99d9e2dc6..ee50f00b11 100644
--- a/source3/pipesrvsvc.c
+++ b/source3/pipesrvsvc.c
@@ -205,9 +205,9 @@ BOOL api_srvsvcTNP(int cnum,int uid, char *param,char *data,
return True;
}
- DEBUG(4,("srvsvc TransactNamedPipe op %x\n",hdr.cancel_count));
+ DEBUG(4,("srvsvc TransactNamedPipe op %x\n",hdr.reserved));
- switch (hdr.cancel_count)
+ switch (hdr.reserved)
{
case NETSHAREENUM:
{
@@ -261,7 +261,7 @@ BOOL api_srvsvcTNP(int cnum,int uid, char *param,char *data,
default:
{
- DEBUG(4, ("srvsvc, unknown code: %lx\n", hdr.cancel_count));
+ DEBUG(4, ("srvsvc, unknown code: %lx\n", hdr.reserved));
break;
}
}