Perzyna Andrzej,DI.
2011-Jul-20 15:38 UTC
[Samba] smbclient connection failes sometimes while connecting users via Active Directory
Hello mailing friends, We have troubles and hopefully you can help us out. There is a problem either on Samba-side or Active Directory but we are not sure where exactly. This problem happens from time to time to each user, especially when many users try to connect at the same time. The following debugging message comes out by using the command: smbclient -U username=DOMAIN\\pez -n EDV80 -d 10 //SERVER/share ... write_socket(6,72) write_socket(6,72) wrote 72 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 write_socket(6,180) write_socket(6,180) wrote 180 got smb length of 35 size=35 smb_com=0x73 smb_rcls=2 smb_reh=0 smb_err=2 smb_flg=136 smb_flg2=32769 smb_tid=0 smb_pid=28518 smb_uid=0 smb_mid=3 smt_wct=0 smb_bcc=0 cli_session_setup: NT1 session setup failed: NT_STATUS_WRONG_PASSWORD lang_tdb_init: /usr/lib64/samba/.msg: Datei oder Verzeichnis nicht gefunden session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.) the successfull connection looks like this: ... write_socket(6,72) write_socket(6,72) wrote 72 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 write_socket(6,172) write_socket(6,172) wrote 172 got smb length of 147 size=147 smb_com=0x73 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=32769 smb_tid=0 smb_pid=28666 smb_uid=45349 smb_mid=3 smt_wct=3 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 0 (0x0) smb_vwv[ 2]= 0 (0x0) smb_bcc=106 [0000] 4A 00 61 00 76 00 61 00 20 00 56 00 69 00 72 00 J.a.v.a. .V.i.r. [0010] 74 00 75 00 61 00 6C 00 20 00 4D 00 61 00 63 00 t.u.a.l. .M.a.c. [0020] 68 00 69 00 6E 00 65 00 00 00 69 00 46 00 53 00 h.i.n.e. ..i.F.S. [0030] 20 00 53 00 4D 00 42 00 20 00 53 00 65 00 72 00 .S.M.B. .S.e.r. [0040] 76 00 65 00 72 00 20 00 76 00 39 00 2E 00 30 00 v.e.r. . v.9...0. [0050] 2E 00 34 00 2E 00 32 00 2E 00 32 00 36 00 00 00 ..4...2. ..2.6... [0060] 54 00 55 00 45 00 56 00 00 00 DOMAIN .. cli_init_creds: user username=DOMAIN\pez domain DOMAIN Thnx in advance, waiting for your response -- Lg, Andy