Hello, in our school I have installed Debian Sarge with Samba 3.0.14a and LDAP. Everything worked fine as long as we used Windows 98SE. Now I have installed Windows XP Prof SP2 (with recommended registry patches). I am able to join the workstations to the domain (after commenting out "ldap_filter ..." in smb.conf). I am able to login from each workstation, everything seemed to be fine. But if two or more workstation log in at the same time (I mean they press "enter" at the login window at the same time) the server crashes. It is not possible to login even from Windows 98. ps shows me that there are some smbd processes hanging. If I execute "/etc/init.d/samba stop" they are still there and I have to KILL them. After doing it I can restart Samba and use the network. The only error message I can find in the log files is "getpeername failed. Error was Transport endpoint is not connected" and "could not connect to any ldap server" (after the crash). Please help me - I have looked through the configuration files many times and I really do not know WHERE to search! Many thanks!
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> The only error message I can find in the log files is > > "getpeername failed. Error was Transport endpoint is not > connected" > > and > > "could not connect to any ldap server" (after the crash). > > Please help me - I have looked through the configuration files > many times and I really do not know WHERE to search!I would look to my LDAP back-end first for a problem like this. Try this to see if your users and groups are visible to Linux: getent passwd [some ldap username] getent group [some ldap groupname] ...and this to see if your LDAP Linux groups are mapped correctly to Windows groups: net groupmap list You might also want to check your LDAP logs and system logs for LDAP errors. Ensure that you have nscd running. Give these a try and then get back with me. Jim C. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFClAtIB4AhF6wVFMERAlQJAJ9heb5Oyd0/z/StrMunWRkwVT8GfACffM/4 WC/By93k+BEUTRgsoevjjtY=7a1z -----END PGP SIGNATURE-----
Gottfried Siehs
2005-May-26 13:49 UTC
[Samba] Re: Samba server crashes when logging in at XP
Hello, many thanks for your help. The LDAP server ist available all the time. The problem is that smbd doesn't reconnect to it. But I hope I have solved it now: There is a parameter "ldap timeout" in smb.conf with default 15 seconds. Obviously that it is too short if 15 XP-stations try to reconnect at the same time. Therefore I have set it to 150 seconds and it seems to work now: ldap timeout = 150 Best Regards, Gottfried
Hello, many thanks for your help. The LDAP server is available all the time. The problem is that smbd doesn't reconnect to it. But I hope I have solved it now: There is a parameter "ldap timeout" in smb.conf with default 15 seconds. Obviously that it is too short if 15 XP-stations try to reconnect at the same time. Therefore I have set it to 150 seconds and it seems to work now: ldap timeout = 150 Best Regards, Gottfried