Password synch. and timeout read

Guillaume Goulet Guillaume.Goulet at
Wed Jun 9 14:09:06 GMT 1999


	We are running Samba 2.0.4b2 with the following configuration.
-hershey1 (SCO UnixWare 7.1 Samba PDC server)
-netpc2 (NT WKS4 client of the PDC's domain)
-eventually other Win 9X, NT clients...

In DIAGNOSIS.txt, test 3 fails like this :

# smbclient -L hershey1
 session request ok
 write_socket(3,168) wrote 168
 read_with_timeout: timeout read. EOF from client.
 receive_smb: length < 0!
 client_receive_smb failed
 protocol negotiation failed

	I looked in the source code and it fails in the /lib/util_sock.c because :
"We got EOF on the file descriptor". This is where len =
read_smb_length_return_keepalive(fd, buffer, timeout) is returning len < 0.

	Samba works well to map drives but wait for a LONG period of time at Win NT
WKS4's login to the PDC or shutdown. When trying to change password with
Ctrl+Alt+Del, it fails when unix passwd synch = yes with the following
/var/log.netpc2 :

[1999/06/09 05:54:55, 10] smbd/chgpasswd.c:(189)
  Invoking '/usr/bin/passwd goulet' as password change program.
[1999/06/09 05:55:00, 10] lib/util_sock.c:(302)
  read_with_timeout: timeout read. select timed out.
[1999/06/09 05:55:00, 3] smbd/chgpasswd.c:(266)
  response 1 incorrect
[1999/06/09 05:55:00, 3] smbd/chgpasswd.c:(316)
  Child failed to change password: goulet
[1999/06/09 05:55:00, 3] smbd/chgpasswd.c:(347)
  The process exited while we were waiting

	This is probably a bad configuration of the smb.conf file :
   workgroup = TESTSAMBA
   server string = Hershey1
   debug level = 20
   encrypt passwords = Yes
   domain logons = Yes
   domain master = Yes
   preferred master = Yes
   local master = Yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *password*%n\n*password*%n\n*succesfull*
   passwd chat debug = Yes
   load printers = yes
   unix password sync = Yes
#   unix password sync = No
   username map = /usr1/samba/lib/
   log file = /usr1/samba/var/log.%m
   max log size = 50
   security = user
   socket options = TCP_NODELAY
   dns proxy = no
   preserve case = Yes
   short preserve case = Yes
   os level = 65
   name resolve order = host lmhosts wins bcast

	Any idea of the optimisations I can do? I know the passwd program can't be
NIS because it requires the old password but has anybody made a script to
change the passwd.byname.pag password entry to xxxxxxxxxxxxx and enter an
empty password at the yppasswd old password entry so the total full duplex
password synchronisation between UNIX and Windows with NIS and Samba can be

Thanks a lot!!!
Guillaume Goulet
Computer Science Student in Summer Term at Versaterm
Do you want to make your old computer go very fast? Throw it out the

More information about the samba mailing list