failed session setup
Apeximov Dmitry
tssb at mail.ru
Thu Sep 2 15:57:19 GMT 1999
Dear Samba Developers,
trying to setup connection with Samba 2.1-prealpha server
with help smbclient from the same linux box, I've got message
"Failed session setup" (twice at time). PC P100 with
Linux RedHat 6.0 (kernel 2.2.5.). CVS is 09 Aug 1999.
I have the simplest smb.conf to test just-compiled Samba.
smb.conf -----------------------------
[global]
workgroup = WRKGROUP
[homes]
guest ok = yes
read only = no
------------------------------
I've done experiment with two smbclient utility: one from self-compiled
Samba 2.1, another from Samba 2.0.3 RedHat 6.0 package.
SMBD IS FROM 2.1 IN BOTH CASES.
1. From Samba 2.1
linux$:./smbclient //linux/adv -U adv -d 10
Added interface ip=192.1.1.21 bcast=192.1.1.255 nmask=255.255.255.0
Client started (version 2.1.0-prealpha).
cli_establish_connection: LINUX<00> connecting to LINUX<20> (0.0.0.0) - adv
[WRKGROUP] with NTLMv1
resolve_name: Attempting lmhosts lookup for name linux
getlmhostsent: lmhost entry: 127.0.0.1 localhost
resolve_name: Attempting host lookup for name linux
Connecting to 192.1.1.21 at port 139
write_socket(4,76)
write_socket(4,76) wrote 76
Sent session request
got smb length of 0
size=0
smb_com=0x0
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=0
smb_tid=0
smb_pid=0
smb_uid=0
smb_mid=0
smt_wct=0
smb_bcc=0
size=164
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=1
smb_tid=0
smb_pid=524
smb_uid=0
smb_mid=1
smt_wct=0
smb_bcc=129
[000] 02 50 43 20 4E 45 54 57 4F 52 4B 20 50 52 4F 47 .PC NETW ORK PROG
[010] 52 41 4D 20 31 2E 30 00 02 4D 49 43 52 4F 53 4F RAM 1.0. .MICROSO
[020] 46 54 20 4E 45 54 57 4F 52 4B 53 20 31 2E 30 33 FT NETWO RKS 1.03
[030] 00 02 4D 49 43 52 4F 53 4F 46 54 20 4E 45 54 57 ..MICROS OFT NETW
[040] 4F 52 4B 53 20 33 2E 30 00 02 4C 41 4E 4D 41 4E ORKS 3.0 ..LANMAN
[050] 31 2E 30 00 02 4C 4D 31 2E 32 58 30 30 32 00 02 1.0..LM1 .2X002..
[060] 53 61 6D 62 61 00 02 4E 54 20 4C 41 4E 4D 41 4E Samba..N T LANMAN
[070] 20 31 2E 30 00 02 4E 54 20 4C 4D 20 30 2E 31 32 1.0..NT LM 0.12
[080] 00 .
write_socket(4,168)
write_socket(4,168) wrote 168
got smb length of 78
size=78
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=524
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[0]=6 (0x6)
smb_vwv[1]=12801 (0x3201)
smb_vwv[2]=256 (0x100)
smb_vwv[3]=65280 (0xFF00)
smb_vwv[4]=255 (0xFF)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=256 (0x100)
smb_vwv[7]=3328 (0xD00)
smb_vwv[8]=2 (0x2)
smb_vwv[9]=12544 (0x3100)
smb_vwv[10]=3 (0x3)
smb_vwv[11]=32768 (0x8000)
smb_vwv[12]=32099 (0x7D63)
smb_vwv[13]=18152 (0x46E8)
smb_vwv[14]=48885 (0xBEF5)
smb_vwv[15]=4097 (0x1001)
smb_vwv[16]=255 (0xFF)
smb_bcc=9
[000] 57 52 4B 47 52 4F 55 50 00 WRKGROUP .
cli_establish_connection: NTLMv1
size=134
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=1
smb_tid=0
smb_pid=524
smb_uid=0
smb_mid=1
smt_wct=13
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=17408 (0x4400)
smb_vwv[3]=2 (0x2)
smb_vwv[4]=524 (0x20C)
smb_vwv[5]=525 (0x20D)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=24 (0x18)
smb_vwv[8]=24 (0x18)
smb_vwv[9]=0 (0x0)
smb_vwv[10]=0 (0x0)
smb_vwv[11]=0 (0x0)
smb_vwv[12]=0 (0x0)
smb_bcc=73
[000] 41 F3 9C 26 7C 69 B6 8C B1 2C 1F 1E 10 3C 92 7C A..&|i.. .,...<.|
[010] F3 88 DC D7 9A 6C F3 AE CE 2C F9 7C 2A CF 28 15 .....l.. .,.|*.(.
[020] E1 9D ED 89 91 C8 EF 69 10 CB 8B 74 9C FD 4A 37 .......i ...t..J7
[030] 41 44 56 00 57 52 4B 47 52 4F 55 50 00 55 6E 69 ADV.WRKG ROUP.Uni
[040] 78 00 00 53 61 6D 62 61 00 x..Samba .
write_socket(4,138)
write_socket(4,138) wrote 138
got smb length of 35
size=35
smb_com=0x73
smb_rcls=2
smb_reh=0
smb_err=2
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=524
smb_uid=0
smb_mid=1
smt_wct=0
smb_bcc=0
failed session setup
Here is the part of the log.smb file
------------------------------
[1999/09/02 17:19:08, 3] smbd/negprot.c:reply_negprot(423)
Selected protocol NT LANMAN 1.0
[1999/09/02 17:19:08, 3] smbd/process.c:process_smb(569)
Transaction 2 of length 138
[1999/09/02 17:19:08, 3] smbd/process.c:switch_message(402)
switch message SMBsesssetupX (pid 503)
[1999/09/02 17:19:08, 3] smbd/reply.c:reply_sesssetup_and_X(655)
Domain=[WRKGROUP] NativeOS=[Unix] NativeLanMan=[]
[1999/09/02 17:19:08, 3] smbd/reply.c:reply_sesssetup_and_X(658)
sesssetupX:name=[?,?|*?(?????i?t??J7ADV]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
what's matter? Why did I get that trash?
[1999/09/02 17:19:08, 0] smbd/password.c:password_ok(561)
Error: challenge not done for user=?,?|*?(????i?t??j7adv
[1999/09/02 17:19:08, 3] smbd/error.c:error_packet(138)
error packet at line 748 cmd=115 (SMBsesssetupX) eclass=2 ecode=2
[1999/09/02 17:19:08, 3] smbd/error.c:error_packet(143)
error string = No such file or directory
2. From Samba 2.0.3
linux$: smbclient //linux/adv -U adv -d 10
pm_process() returned Yes
Added interface ip=192.1.1.21 bcast=192.1.1.255 nmask=255.255.255.0
Client started (version 2.0.3).
resolve_name: Attempting lmhosts lookup for name linux<0x20>
getlmhostsent: lmhost entry: 127.0.0.1 localhost
resolve_name: Attempting host lookup for name linux<0x20>
Connecting to 192.1.1.21 at port 139
write_socket(4,76)
write_socket(4,76) wrote 76
Sent session request
got smb length of 0
size=0
smb_com=0x0
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=0
smb_tid=0
smb_pid=0
smb_uid=0
smb_mid=0
smt_wct=0
smb_bcc=0
session request ok
from log.smb
------------------------------
[1999/09/02 17:16:42, 3] smbd/negprot.c:reply_negprot(423)
Selected protocol NT LANMAN 1.0
[1999/09/02 17:16:45, 3] smbd/process.c:process_smb(569)
Transaction 2 of length 95
[1999/09/02 17:16:45, 3] smbd/process.c:switch_message(402)
switch message SMBsesssetupX (pid 498)
[1999/09/02 17:16:45, 3] smbd/reply.c:reply_sesssetup_and_X(655)
Domain=[WRKGROUP] NativeOS=[Unix] NativeLanMan=[Samba]
[1999/09/02 17:16:45, 3] smbd/reply.c:reply_sesssetup_and_X(658)
sesssetupX:name=[ADV]
^^^^^^ but here it's ok
[1999/09/02 17:16:45, 3] param/loadparm.c:lp_add_home(1534)
adding home directory adv at /home/adv
What's matter?
With best wishes,
Dmitry
More information about the samba-ntdom
mailing list