smbclient command fails with version 3.0.x: /opt/samba-3.0.14a/bin/smbclient //wiew0110.wie/projects -U SAP2PDF!sap -W WIE session setup failed: SUCCESS - 0 smbclient command with e.g. version 2.2.5 works well. /opt/samba-2.2.5/bin/smbclient //wiew0110.wie/projects -U SAP2PDF -W WIE debug: /opt/samba-3.0.14a/bin/smbclient //wiew0110.wie/projects -U SAP2PDF -W WIE - debug=10 INFO: Current debug levels: all: True/10 tdb: False/0 printdrivers: False/0 lanman: False/0 smb: False/0 rpc_parse: False/0 rpc_srv: False/0 rpc_cli: False/0 passdb: False/0 sam: False/0 auth: False/0 winbind: False/0 vfs: False/0 idmap: False/0 quota: False/0 acls: False/0 lp_load: refreshing parameters Initialising global parameters params.c:pm_process() - Processing configuration file "/opt/samba- 3.0.14a/lib/smb.conf" pm_process() returned Yes lp_servicenumber: couldn't find homes set_server_role: role = ROLE_STANDALONE Attempting to register new charset UCS-2LE Registered charset UCS-2LE Attempting to register new charset UTF-16LE Registered charset UTF-16LE Attempting to register new charset UCS-2BE Registered charset UCS-2BE Attempting to register new charset UTF-16BE Registered charset UTF-16BE Attempting to register new charset UTF8 Registered charset UTF8 Attempting to register new charset UTF-8 Registered charset UTF-8 Attempting to register new charset ASCII Registered charset ASCII Attempting to register new charset 646 Registered charset 646 Attempting to register new charset ISO-8859-1 Registered charset ISO-8859-1 Attempting to register new charset UCS2-HEX Registered charset UCS2-HEX Attempting to register new charset CP850 Registered charset CP850 Attempting to register new charset CP437 Registered charset CP437 Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE Substituting charset 'roman8' for LOCALE added interface ip=192.168.1.172 bcast=192.168.1.255 nmask=255.255.255.0 added interface ip=136.238.83.172 bcast=136.238.83.255 nmask=255.255.255.0 added interface ip=136.238.83.175 bcast=136.238.83.255 nmask=255.255.255.0 added interface ip=136.238.83.174 bcast=136.238.83.255 nmask=255.255.255.0 added interface ip=136.238.4.10 bcast=136.238.5.255 nmask=255.255.254.0 Netbios name list:- my_netbios_names[0]="INFHP395" Client started (version 3.0.14a). internal_resolve_name: looking up wiew0110.wie#20 Opening cache file at /opt/samba-3.0.14a/var/locks/gencache.tdb Returning valid cache entry: key = NBT/WIEW0110.WIE#20, value = 10.29.0.154:0, timeout = Thu Jul 7 14:35:03 2005 name wiew0110.wie#20 found. Connecting to 10.29.0.154 at port 445 socket option SO_KEEPALIVE = 0 socket option SO_REUSEADDR = 0 socket option SO_BROADCAST = 0 socket option IPTOS_LOWDELAY = 0 socket option IPTOS_THROUGHPUT = 0 socket option SO_REUSEPORT = 0 socket option SO_SNDBUF = 32768 socket option SO_RCVBUF = 32768 socket option SO_SNDLOWAT = 8192 socket option SO_RCVLOWAT = 8192 socket option SO_SNDTIMEO = 0 socket option SO_RCVTIMEO = 0 session request ok write_socket(4,183) write_socket(4,183) wrote 183 got smb length of 161 size=161 smb_com=0x72 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=152 smb_flg2=32769 smb_tid=0 smb_pid=18864 smb_uid=0 smb_mid=1 smt_wct=17 smb_vwv[ 0]= 8 (0x8) smb_vwv[ 1]=12803 (0x3203) smb_vwv[ 2]= 256 (0x100) smb_vwv[ 3]= 1024 (0x400) smb_vwv[ 4]= 129 (0x81) smb_vwv[ 5]= 0 (0x0) smb_vwv[ 6]= 256 (0x100) smb_vwv[ 7]=50432 (0xC500) smb_vwv[ 8]=50155 (0xC3EB) smb_vwv[ 9]=64774 (0xFD06) smb_vwv[10]= 211 (0xD3) smb_vwv[11]=59520 (0xE880) smb_vwv[12]=53452 (0xD0CC) smb_vwv[13]=61193 (0xEF09) smb_vwv[14]=50562 (0xC582) smb_vwv[15]=34817 (0x8801) smb_vwv[16]= 255 (0xFF) smb_bcc=92 [000] 15 00 00 00 48 23 52 70 D4 3C B6 05 2C 87 A0 40 ....H#Rp .<..,..@ [010] 60 4A 06 06 2B 06 01 05 05 02 A0 40 30 3E A0 19 `J..+... ...@0>.. [020] 30 17 06 09 2A 86 48 82 F7 12 01 02 02 06 0A 2B 0...*.H. .......+ [030] 06 01 04 01 82 37 02 02 0A A3 21 30 1F A0 1D 1B .....7.. ..!0.... [040] 1B 77 69 65 77 30 31 31 30 24 40 57 49 45 2E 53 .wiew011 0$@WIE.S [050] 43 48 49 4E 44 4C 45 52 2E 43 4F 4D CHINDLER .COM size=161 smb_com=0x72 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=152 smb_flg2=32769 smb_tid=0 smb_pid=18864 smb_uid=0 smb_mid=1 smt_wct=17 smb_vwv[ 0]= 8 (0x8) smb_vwv[ 1]=12803 (0x3203) smb_vwv[ 2]= 256 (0x100) smb_vwv[ 3]= 1024 (0x400) smb_vwv[ 4]= 129 (0x81) smb_vwv[ 5]= 0 (0x0) smb_vwv[ 6]= 256 (0x100) smb_vwv[ 7]=50432 (0xC500) smb_vwv[ 8]=50155 (0xC3EB) smb_vwv[ 9]=64774 (0xFD06) smb_vwv[10]= 211 (0xD3) smb_vwv[11]=59520 (0xE880) smb_vwv[12]=53452 (0xD0CC) smb_vwv[13]=61193 (0xEF09) smb_vwv[14]=50562 (0xC582) smb_vwv[15]=34817 (0x8801) smb_vwv[16]= 255 (0xFF) smb_bcc=92 [000] 15 00 00 00 48 23 52 70 D4 3C B6 05 2C 87 A0 40 ....H#Rp .<..,..@ [010] 60 4A 06 06 2B 06 01 05 05 02 A0 40 30 3E A0 19 `J..+... ...@0>.. [020] 30 17 06 09 2A 86 48 82 F7 12 01 02 02 06 0A 2B 0...*.H. .......+ [030] 06 01 04 01 82 37 02 02 0A A3 21 30 1F A0 1D 1B .....7.. ..!0.... [040] 1B 77 69 65 77 30 31 31 30 24 40 57 49 45 2E 53 .wiew011 0$@WIE.S [050] 43 48 49 4E 44 4C 45 52 2E 43 4F 4D CHINDLER .COM Serverzone is -7200 Doing spnego session setup (blob length=92) got OID=1 2 840 48018 1 2 2 got OID=1 3 6 1 4 1 311 2 2 10 got principal=wiew0110$@WIE.SCHINDLER.COM write_socket(4,162) write_socket(4,162) wrote 162 got smb length of 520 size=520 smb_com=0x73 smb_rcls=22 smb_reh=0 smb_err=49152 smb_flg=152 smb_flg2=51207 smb_tid=0 smb_pid=18864 smb_uid=2048 smb_mid=2 smt_wct=4 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 0 (0x0) smb_vwv[ 2]= 0 (0x0) smb_vwv[ 3]= 403 (0x193) smb_bcc=477 [000] A1 82 01 8F 30 82 01 8B A0 03 0A 01 01 A1 0C 06 ....0... ........ [010] 0A 2B 06 01 04 01 82 37 02 02 0A A2 81 B9 04 81 .+.....7 ........ [020] B6 4E 54 4C 4D 53 53 50 00 02 00 00 00 06 00 06 .NTLMSSP ........ [030] 00 30 00 00 00 05 02 89 00 B4 00 76 18 89 5A 51 .0...... ...v..ZQ [040] 3F 00 00 00 00 00 00 00 00 80 00 80 00 36 00 00 ?....... .....6.. [050] 00 57 00 49 00 45 00 02 00 06 00 57 00 49 00 45 .W.I.E.. ...W.I.E [060] 00 01 00 10 00 57 00 49 00 45 00 57 00 30 00 31 .....W.I .E.W.0.1 [070] 00 31 00 30 00 04 00 22 00 57 00 49 00 45 00 2E .1.0..." .W.I.E.. [080] 00 53 00 43 00 48 00 49 00 4E 00 44 00 4C 00 45 .S.C.H.I .N.D.L.E [090] 00 52 00 2E 00 43 00 4F 00 4D 00 03 00 34 00 77 .R...C.O .M...4.w [0A0] 00 69 00 65 00 77 00 30 00 31 00 31 00 30 00 2E .i.e.w.0 .1.1.0.. [0B0] 00 77 00 69 00 65 00 2E 00 73 00 63 00 68 00 69 .w.i.e.. .s.c.h.i [0C0] 00 6E 00 64 00 6C 00 65 00 72 00 2E 00 63 00 6F .n.d.l.e .r...c.o [0D0] 00 6D 00 00 00 00 00 A3 81 B9 04 81 B6 4E 54 4C .m...... .....NTL [0E0] 4D 53 53 50 00 02 00 00 00 06 00 06 00 30 00 00 MSSP.... .....0.. [0F0] 00 05 02 89 00 B4 00 76 18 89 5A 51 3F 00 00 00 .......v ..ZQ?... [100] 00 00 00 00 00 80 00 80 00 36 00 00 00 57 00 49 ........ .6...W.I [110] 00 45 00 02 00 06 00 57 00 49 00 45 00 01 00 10 .E.....W .I.E.... [120] 00 57 00 49 00 45 00 57 00 30 00 31 00 31 00 30 .W.I.E.W .0.1.1.0 [130] 00 04 00 22 00 57 00 49 00 45 00 2E 00 53 00 43 ...".W.I .E...S.C [140] 00 48 00 49 00 4E 00 44 00 4C 00 45 00 52 00 2E .H.I.N.D .L.E.R.. [150] 00 43 00 4F 00 4D 00 03 00 34 00 77 00 69 00 65 .C.O.M.. .4.w.i.e [160] 00 77 00 30 00 31 00 31 00 30 00 2E 00 77 00 69 .w.0.1.1 .0...w.i [170] 00 65 00 2E 00 73 00 63 00 68 00 69 00 6E 00 64 .e...s.c .h.i.n.d [180] 00 6C 00 65 00 72 00 2E 00 63 00 6F 00 6D 00 00 .l.e.r.. .c.o.m.. [190] 00 00 00 57 00 69 00 6E 00 64 00 6F 00 77 00 73 ...W.i.n .d.o.w.s [1A0] 00 20 00 35 00 2E 00 30 00 00 00 57 00 69 00 6E . .5...0 ...W.i.n [1B0] 00 64 00 6F 00 77 00 73 00 20 00 32 00 30 00 30 .d.o.w.s . .2.0.0 [1C0] 00 30 00 20 00 4C 00 41 00 4E 00 20 00 4D 00 61 .0. .L.A .N. .M.a [1D0] 00 6E 00 61 00 67 00 65 00 72 00 00 00 .n.a.g.e .r... size=520 smb_com=0x73 smb_rcls=22 smb_reh=0 smb_err=49152 smb_flg=152 smb_flg2=51207 smb_tid=0 smb_pid=18864 smb_uid=2048 smb_mid=2 smt_wct=4 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 0 (0x0) smb_vwv[ 2]= 0 (0x0) smb_vwv[ 3]= 403 (0x193) smb_bcc=477 [000] A1 82 01 8F 30 82 01 8B A0 03 0A 01 01 A1 0C 06 ....0... ........ [010] 0A 2B 06 01 04 01 82 37 02 02 0A A2 81 B9 04 81 .+.....7 ........ [020] B6 4E 54 4C 4D 53 53 50 00 02 00 00 00 06 00 06 .NTLMSSP ........ [030] 00 30 00 00 00 05 02 89 00 B4 00 76 18 89 5A 51 .0...... ...v..ZQ [040] 3F 00 00 00 00 00 00 00 00 80 00 80 00 36 00 00 ?....... .....6.. [050] 00 57 00 49 00 45 00 02 00 06 00 57 00 49 00 45 .W.I.E.. ...W.I.E [060] 00 01 00 10 00 57 00 49 00 45 00 57 00 30 00 31 .....W.I .E.W.0.1 [070] 00 31 00 30 00 04 00 22 00 57 00 49 00 45 00 2E .1.0..." .W.I.E.. [080] 00 53 00 43 00 48 00 49 00 4E 00 44 00 4C 00 45 .S.C.H.I .N.D.L.E [090] 00 52 00 2E 00 43 00 4F 00 4D 00 03 00 34 00 77 .R...C.O .M...4.w [0A0] 00 69 00 65 00 77 00 30 00 31 00 31 00 30 00 2E .i.e.w.0 .1.1.0.. [0B0] 00 77 00 69 00 65 00 2E 00 73 00 63 00 68 00 69 .w.i.e.. .s.c.h.i [0C0] 00 6E 00 64 00 6C 00 65 00 72 00 2E 00 63 00 6F .n.d.l.e .r...c.o [0D0] 00 6D 00 00 00 00 00 A3 81 B9 04 81 B6 4E 54 4C .m...... .....NTL [0E0] 4D 53 53 50 00 02 00 00 00 06 00 06 00 30 00 00 MSSP.... .....0.. [0F0] 00 05 02 89 00 B4 00 76 18 89 5A 51 3F 00 00 00 .......v ..ZQ?... [100] 00 00 00 00 00 80 00 80 00 36 00 00 00 57 00 49 ........ .6...W.I [110] 00 45 00 02 00 06 00 57 00 49 00 45 00 01 00 10 .E.....W .I.E.... [120] 00 57 00 49 00 45 00 57 00 30 00 31 00 31 00 30 .W.I.E.W .0.1.1.0 [130] 00 04 00 22 00 57 00 49 00 45 00 2E 00 53 00 43 ...".W.I .E...S.C [140] 00 48 00 49 00 4E 00 44 00 4C 00 45 00 52 00 2E .H.I.N.D .L.E.R.. [150] 00 43 00 4F 00 4D 00 03 00 34 00 77 00 69 00 65 .C.O.M.. .4.w.i.e [160] 00 77 00 30 00 31 00 31 00 30 00 2E 00 77 00 69 .w.0.1.1 .0...w.i [170] 00 65 00 2E 00 73 00 63 00 68 00 69 00 6E 00 64 .e...s.c .h.i.n.d [180] 00 6C 00 65 00 72 00 2E 00 63 00 6F 00 6D 00 00 .l.e.r.. .c.o.m.. [190] 00 00 00 57 00 69 00 6E 00 64 00 6F 00 77 00 73 ...W.i.n .d.o.w.s [1A0] 00 20 00 35 00 2E 00 30 00 00 00 57 00 69 00 6E . .5...0 ...W.i.n [1B0] 00 64 00 6F 00 77 00 73 00 20 00 32 00 30 00 30 .d.o.w.s . .2.0.0 [1C0] 00 30 00 20 00 4C 00 41 00 4E 00 20 00 4D 00 61 .0. .L.A .N. .M.a [1D0] 00 6E 00 61 00 67 00 65 00 72 00 00 00 .n.a.g.e .r... Got challenge flags: Got NTLMSSP neg_flags=0x00890205 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_NTLM2 NTLMSSP_CHAL_TARGET_INFO NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x00080215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_NTLM2 NTLMSSP challenge set by NTLM2 challenge is: [000] 1E 37 90 8A E0 DE EE 8B .7...... NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x00080215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_NTLM2 write_socket(4,246) write_socket(4,246) wrote 246 got smb length of 148 size=148 smb_com=0x73 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=34823 smb_tid=0 smb_pid=18864 smb_uid=2048 smb_mid=3 smt_wct=4 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 0 (0x0) smb_vwv[ 2]= 0 (0x0) smb_vwv[ 3]= 23 (0x17) smb_bcc=105 [000] A1 15 30 13 A0 03 0A 01 00 A1 0C 06 0A 2B 06 01 ..0..... .....+.. [010] 04 01 82 37 02 02 0A 57 00 69 00 6E 00 64 00 6F ...7...W .i.n.d.o [020] 00 77 00 73 00 20 00 35 00 2E 00 30 00 00 00 57 .w.s. .5 ...0...W [030] 00 69 00 6E 00 64 00 6F 00 77 00 73 00 20 00 32 .i.n.d.o .w.s. .2 [040] 00 30 00 30 00 30 00 20 00 4C 00 41 00 4E 00 20 .0.0.0. .L.A.N. [050] 00 4D 00 61 00 6E 00 61 00 67 00 65 00 72 00 00 .M.a.n.a .g.e.r.. [060] 00 57 00 49 00 45 00 00 00 .W.I.E.. . size=148 smb_com=0x73 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=34823 smb_tid=0 smb_pid=18864 smb_uid=2048 smb_mid=3 smt_wct=4 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 0 (0x0) smb_vwv[ 2]= 0 (0x0) smb_vwv[ 3]= 23 (0x17) smb_bcc=105 [000] A1 15 30 13 A0 03 0A 01 00 A1 0C 06 0A 2B 06 01 ..0..... .....+.. [010] 04 01 82 37 02 02 0A 57 00 69 00 6E 00 64 00 6F ...7...W .i.n.d.o [020] 00 77 00 73 00 20 00 35 00 2E 00 30 00 00 00 57 .w.s. .5 ...0...W [030] 00 69 00 6E 00 64 00 6F 00 77 00 73 00 20 00 32 .i.n.d.o .w.s. .2 [040] 00 30 00 30 00 30 00 20 00 4C 00 41 00 4E 00 20 .0.0.0. .L.A.N. [050] 00 4D 00 61 00 6E 00 61 00 67 00 65 00 72 00 00 .M.a.n.a .g.e.r.. [060] 00 57 00 49 00 45 00 00 00 .W.I.E.. . spnego_parse_auth_response failed at 9 Failed to parse auth response SPNEGO login failed: Unexpected information received session setup failed: SUCCESS - 0
Correct command with version 3.0.14a was: /opt/samba-3.0.14a/bin/smbclient //wiew0110.wie/projects -U SAP2PDF -W WIE Sorry!
I'm confused. Were you just correcting a typo or is this bug invalid now ?
I was just correcting the typo! The command of calling smbclient is the same for both samba versions: smbclient //wiew0110.wie/projects -U SAP2PDF -W WIE
What server are you connecting to? I need to see raw ethereal trace of the failure.
'tcpdump -w /tmp/dump.pcap -s 0 -i eth0' will work also. You can mail the trace to me directy if you don't want to attach it to the bug report.
Did you find a solution?
Hi I installed version 3.0.14a on HP-UX and tried again. Now I have no more problems connecting by smbclient. Please close this report. With kind regards Paul
closing