3 seconds login delay
Kees Damen
kees.damen at bronswerk.nl
Thu Dec 20 03:23:02 GMT 2001
Hello,
We recently switched from "security = user" to
"security = server". And are now using a NT4 server for
password authentication. This method gives less problems
with NT4/W2K Workstations and encrypted passwords.
When we where using "security = user" Samba authentication
was against the local Unix password files and login was fast
without any delay. After the switch there was a 3 seconds
login delay when connecting for the first share. I have read
about this in the listing before, others where also complaining
about this.
I started searching in the 2.2.2 source code and found that
this is caused by the check for a "broken NT4 server" in the
file smbd/password.c line 1182. Samba gives a incorrect
username and password to the authentication server for guest
account testing. The NT server gives you a 3 second delay
for this incorrect username/password. After switching this
test off login was fast again and everything worked fine
without any problems.
Switching off this test is a workaround that works for our
company because our NT4 server is not suffering from the
broken server bug.
My suggestion for improving Samba is this:
- Let only the Mother smbd process test the authentication
server for this behavior and make this result available
for all the Child processes. For example by an extra command
line switch for smbd. Then only the Mother gets the 3 seconds
penalty from the authentication server during system boot.
And all the Child's login fast without any delay.
Regards,
Kees Damen
--
B R O N S W E R K H E A T T R A N S F E R B V
Stationsweg 22
3862 CG Nijkerk
P.O. Box 92
3860 AB Nijkerk
The Netherlands
Direct : (+31)33-24 72 517
Tel. : (+31)33-24 72 500
Fax. : (+31)33-24 52 338
E-mail : mailto:kees.damen at bronswerk.nl
WWW : http://www.bronswerk.nl
More information about the samba
mailing list