Volker Lendecke schrieb:
On Wed, Jul 23, 2008 at 10:47:43PM +0200, Michael Lang wrote:
I tried to find the error myself by checking Chapter 12 "Troubleshooting Samba" of "Using Samba 3rd edition" without success.

Is there anything wrong with my installation which leads to the "protocol negotiation failed" error?


You should look in smbd's logfile at debug level 10.

Volker

Hi Volker,

I get no clue out of it :-(


[EMAIL PROTECTED]:~$ /opt/bin/smbclient -L localhost -N
protocol negotiation failed


[EMAIL PROTECTED]:~$ cat /opt/var/samba/log.smbd
[2008/07/23 22:39:18,  6] source/param/loadparm.c:lp_file_list_changed(6625)
  lp_file_list_changed()
file /opt/etc/samba/smb.conf -> /opt/etc/samba/smb.conf last mod_time: Wed Jul 23 22:35:06 2008

[2008/07/23 22:39:18,  3] source/smbd/oplock.c:init_oplocks(875)
  init_oplocks: initializing messages.
[2008/07/23 22:39:18, 3] source/smbd/oplock_linux.c:linux_init_kernel_oplocks(241)
  Linux kernel oplocks enabled
[2008/07/23 22:39:18, 10] source/lib/events.c:event_add_timed(128)
  Added timed event "idle_evt(keepalive)": 59b228
[2008/07/23 22:39:18, 10] source/lib/events.c:event_add_timed(128)
  Added timed event "idle_evt(deadtime)": 59b3e0
[2008/07/23 22:39:18, 10] source/lib/util_sock.c:read_smb_length_return_keepalive(1118)
  got smb length of 190
[2008/07/23 22:39:18,  6] source/smbd/process.c:process_smb(1546)
  got message type 0x0 of len 0xbe
[2008/07/23 22:39:18,  3] source/smbd/process.c:process_smb(1549)
  Transaction 0 of length 194 (0 toread)
[2008/07/23 22:39:18,  5] source/lib/util.c:show_msg(645)
[2008/07/23 22:39:18,  5] source/lib/util.c:show_msg(655)
  size=190
  smb_com=0x72
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=8
  smb_flg2=51201
  smb_tid=0
  smb_pid=1156
  smb_uid=0
  smb_mid=1
  smt_wct=0
  smb_bcc=155
[2008/07/23 22:39:18, 10] source/lib/util.c:dump_data(2226)
  [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] 44 4F 53 20 4C 41 4E 4D  41 4E 32 2E 31 00 02 4C  DOS LANM AN2.1..L
  [070] 41 4E 4D 41 4E 32 2E 31  00 02 53 61 6D 62 61 00  ANMAN2.1 ..Samba.
  [080] 02 4E 54 20 4C 41 4E 4D  41 4E 20 31 2E 30 00 02  .NT LANM AN 1.0..
  [090] 4E 54 20 4C 4D 20 30 2E  31 32 00                 NT LM 0. 12.
[2008/07/23 22:39:18,  3] source/smbd/process.c:switch_message(1361)
  switch message SMBnegprot (pid 1157) conn 0x0
[2008/07/23 22:39:18,  3] source/smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/07/23 22:39:18,  5] source/auth/token_util.c:debug_nt_user_token(464)
  NT user token: (NULL)
[2008/07/23 22:39:18, 5] source/auth/token_util.c:debug_unix_user_token(490)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2008/07/23 22:39:18,  5] source/smbd/uid.c:change_to_root_user(287)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2008/07/23 22:39:18,  5] source/lib/charcnv.c:charset_name(81)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2008/07/23 22:39:18,  5] source/lib/charcnv.c:charset_name(81)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2008/07/23 22:39:18,  5] source/lib/charcnv.c:charset_name(81)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2008/07/23 22:39:18,  5] source/lib/charcnv.c:charset_name(81)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2008/07/23 22:39:18,  5] source/lib/charcnv.c:charset_name(81)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2008/07/23 22:39:18,  5] source/lib/charcnv.c:charset_name(81)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2008/07/23 22:39:18,  5] source/lib/charcnv.c:charset_name(81)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2008/07/23 22:39:18,  5] source/lib/charcnv.c:charset_name(81)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2008/07/23 22:39:18,  5] source/lib/charcnv.c:charset_name(81)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2008/07/23 22:39:18,  5] source/lib/charcnv.c:charset_name(81)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2008/07/23 22:39:18,  5] source/lib/charcnv.c:charset_name(81)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2008/07/23 22:39:18,  5] source/lib/charcnv.c:charset_name(81)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2008/07/23 22:39:18,  3] source/smbd/negprot.c:reply_negprot(568)
  Requested protocol [倀䌀 一䔀吀圀伀刀䬀 倀刀伀䜀刀䄀䴀 ㄀⸀ ]
[2008/07/23 22:39:18,  3] source/smbd/negprot.c:reply_negprot(568)
  Requested protocol [䴀䤀䌀刀伀匀伀䘀吀 一䔀吀圀伀刀䬀匀 ㄀⸀ ㌀]
[2008/07/23 22:39:18,  3] source/smbd/negprot.c:reply_negprot(568)
  Requested protocol [䴀䤀䌀刀伀匀伀䘀吀 一䔀吀圀伀刀䬀匀 ㌀⸀ ]
[2008/07/23 22:39:18,  3] source/smbd/negprot.c:reply_negprot(568)
  Requested protocol [䰀䄀一䴀䄀一㄀⸀ ]
[2008/07/23 22:39:18,  3] source/smbd/negprot.c:reply_negprot(568)
  Requested protocol [䰀䴀㄀⸀㈀堀  ㈀]
[2008/07/23 22:39:18,  3] source/smbd/negprot.c:reply_negprot(568)
  Requested protocol [䐀伀匀 䰀䄀一䴀䄀一㈀⸀㄀]
[2008/07/23 22:39:18,  3] source/smbd/negprot.c:reply_negprot(568)
  Requested protocol [䰀䄀一䴀䄀一㈀⸀㄀]
[2008/07/23 22:39:18,  3] source/smbd/negprot.c:reply_negprot(568)
  Requested protocol [匀愀洀戀愀]
[2008/07/23 22:39:18,  3] source/smbd/negprot.c:reply_negprot(568)
  Requested protocol [一吀 䰀䄀一䴀䄀一 ㄀⸀ ]
[2008/07/23 22:39:18,  3] source/smbd/negprot.c:reply_negprot(568)
  Requested protocol [一吀 䰀䴀  ⸀㄀㈀]
[2008/07/23 22:39:18, 10] source/lib/util.c:set_remote_arch(2201)
  set_remote_arch: Client arch is 'UNKNOWN'
[2008/07/23 22:39:18,  6] source/param/loadparm.c:lp_file_list_changed(6625)
  lp_file_list_changed()
file /opt/etc/samba/smb.conf -> /opt/etc/samba/smb.conf last mod_time: Wed Jul 23 22:35:06 2008

[2008/07/23 22:39:18,  5] source/smbd/connection.c:claim_connection(142)
  claiming []
[2008/07/23 22:39:18, 10] source/lib/dbwrap_tdb.c:db_tdb_fetch_locked(100)
  Locking key 00000485FFFFFFFF0000
[2008/07/23 22:39:18, 10] source/lib/dbwrap_tdb.c:db_tdb_fetch_locked(129)
  Allocated locked data 0x0x59cd78
[2008/07/23 22:39:18, 10] source/lib/dbwrap_tdb.c:db_tdb_record_destr(42)
  Unlocking key 00000485FFFFFFFF0000
[2008/07/23 22:39:18,  0] source/smbd/negprot.c:reply_negprot(675)
  No protocol supported !
[2008/07/23 22:39:18,  5] source/smbd/negprot.c:reply_negprot(680)
  negprot index=-1
[2008/07/23 22:39:18,  5] source/lib/util.c:show_msg(645)
[2008/07/23 22:39:18,  5] source/lib/util.c:show_msg(655)
  size=37
  smb_com=0x72
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=49153
  smb_tid=0
  smb_pid=1156
  smb_uid=0
  smb_mid=1
  smt_wct=1
  smb_vwv[ 0]=65535 (0xFFFF)
  smb_bcc=0
[2008/07/23 22:39:18, 5] source/lib/util_sock.c:read_socket_with_timeout(928)
  read_socket_with_timeout: blocking read. EOF from client.
[2008/07/23 22:39:18, 10] source/smbd/process.c:receive_smb_raw_talloc(276)
  receive_smb_raw: NT_STATUS_END_OF_FILE
[2008/07/23 22:39:18,  3] source/smbd/process.c:smbd_process(2027)
  receive_message_or_smb failed: NT_STATUS_END_OF_FILE, exiting
[2008/07/23 22:39:18,  5] source/lib/gencache.c:gencache_shutdown(93)
  Closing cache file
[2008/07/23 22:39:18,  5] source/libsmb/namecache.c:namecache_shutdown(81)
  namecache_shutdown: netbios namecache closed successfully.
[2008/07/23 22:39:18,  3] source/smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/07/23 22:39:18,  5] source/auth/token_util.c:debug_nt_user_token(464)
  NT user token: (NULL)
[2008/07/23 22:39:18, 5] source/auth/token_util.c:debug_unix_user_token(490)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2008/07/23 22:39:18,  5] source/smbd/uid.c:change_to_root_user(287)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2008/07/23 22:39:18,  3] source/smbd/connection.c:yield_connection(31)
  Yielding connection to
[2008/07/23 22:39:18, 10] source/lib/dbwrap_tdb.c:db_tdb_fetch_locked(100)
  Locking key 00000485FFFFFFFF0000
[2008/07/23 22:39:18, 10] source/lib/dbwrap_tdb.c:db_tdb_fetch_locked(129)
  Allocated locked data 0x0x590360
[2008/07/23 22:39:18, 10] source/lib/dbwrap_tdb.c:db_tdb_record_destr(42)
  Unlocking key 00000485FFFFFFFF0000
[2008/07/23 22:39:18,  3] source/smbd/server.c:exit_server_common(944)
  Server exit (normal exit)

Thanks and Regards,
Michael
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Reply via email to