[prev in list] [next in list] [prev in thread] [next in thread] 

List:       samba-technical
Subject:    Re: Samba under high connection load (2.0.0)
From:       Gerald Carter <cartegw () Eng ! Auburn ! EDU>
Date:       1999-01-30 16:46:52
[Download RAW message or body]

Bob Farmer wrote:
> 
> I added the GDBM database support for both /etc/passwd and
> /usr/local/samba/private/smbpasswd on Friday and since then things are
> pretty lightning quick, authentication time dropped from around 1-2
> seconds to more like a hundredth of a second or less (from Samba's
> perspective).  It appears the main bottleneck previously was 
> the reading of /etc/passwd, not smbpasswd...  

Bob, I guessing you have a script to update the gdbm database 
when /etc/passwd if changed.  Am I correct?

> What about a configuration option that makes Samba 
> _only_ try usernames in all lowercase within Get_Pwnam()?  
> Most people only use lowercase Unix usernames and this 
> would probably speed things up to an acceptable level
> for most people even without the database support.  

The lower case should be tried first and only attempt to lookup 
mixed case user names if that fails.  At least that how I 
remember it. I'm not looking at the code write now.



Cheers,
jerry
________________________________________________________________________
                            Gerald ( Jerry ) Carter	
Engineering Network Services                           Auburn University 
jerry@eng.auburn.edu             http://www.eng.auburn.edu/users/cartegw

       "...a hundred billion castaways looking for a home."
                                  - Sting "Message in a Bottle" ( 1979 )

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic