[samba] help! connection problems, timed out?!

Daniel Wilson daniel.wilson at sunderland.ac.uk
Wed Nov 30 17:50:19 GMT 2005


Hi

We are having some problems with connecting to samba.

We have samba 3.0.14a on suse linux with LDAP enabled!

im using "smbclient -L //server -U user" to test a connection

Some times we get an instant response and other times we get "session setup failed: NT_STATUS_LOGON_FAILURE" or "NT_STATUS_UNSUCESSFUL"

I havent got a clue what's going on, sometimes it works great and then not so. Our network guys say there is nothing wrong on any network switches/network!

In the log.smbd we do have a lot of:

[2005/11/30 17:36:52, 2] lib/smbldap.c:smbldap_open_connection(692)
  smbldap_open_connection: connection opened
[2005/11/30 17:36:52, 2] passdb/pdb_ldap.c:init_sam_from_ldap(499)
  init_sam_from_ldap: Entry found for user: ws0dwi
[2005/11/30 17:37:07, 0] auth/auth_sam.c:check_sam_security(324)
  check_sam_security: make_server_info_sam() failed with 'NT_STATUS_UNSUCCESSFUL'
[2005/11/30 17:37:07, 2] auth/auth.c:check_ntlm_password(312)
  check_ntlm_password:  Authentication for user [ws0dwi] -> [ws0dwi] FAILED with error NT_STATUS_UNSUCCESSFUL
[2005/11/30 17:37:07, 2] smbd/server.c:exit_server(609)
  Closing connections


and also

smbldap_search_suffix: Problem during the LDAP search: (unknown) (Timed out)

i have run tethereal to see the network packets as i suspect it may be problems with LDAP, when i try to test a connect and we dont get a sucessful connection this is a snippet of the out put....

375.692180 157.228.98.42 -> 157.228.37.92 TCP 40156 > ldap [ACK] Seq=1355 Ack=2375 Win=10532 Len=0 TSV=3165855666 TSER=1174962082
384.312099 157.228.98.42 -> 157.228.37.92 TCP 40157 > ldap [SYN] Seq=0 Ack=0 Win=5840 Len=0 MSS=1460 TSV=3165864287 TSER=0 WS=2384.313583 157.228.37.92 -> 157.228.98.42 TCP ldap > 40157 [SYN, ACK] Seq=0 Ack=1 Win=49232 Len=0 TSV=1174962944 TSER=3165864287 MSS=1460 WS=0
384.313594 157.228.98.42 -> 157.228.37.92 TCP 40157 > ldap [ACK] Seq=1 Ack=1 Win=5840 Len=0 TSV=3165864288 TSER=1174962944
384.314124 157.228.98.42 -> 157.228.37.92 LDAP MsgId=1 Bind Request, DN=cn=Directory Manager
384.314461 157.228.37.92 -> 157.228.98.42 TCP ldap > 40157 [ACK] Seq=1 Ack=44 Win=49189 Len=0 TSV=1174962945 TSER=3165864289

....it freezes at this line /\ for a few seconds then we get the  "NT_STATUS_LOGON_FAILURE" or "NT_STATUS_UNSUCESSFUL"


PLease could somebody advise? This is causing thousands of users problems!
-- 
Daniel Wilson
Systems Manager
Student and Learning Support
University of Sunderland
Tel: 0191 515 2695



More information about the samba mailing list