[Samba] Loooooong logon-times using samba 3.5.6 and Windows 7

Hans Otto Lunde ho-smb at egmont-hs.dk
Wed Feb 16 07:46:26 MST 2011


Hi Dale

>> Check this thread to see if it might  help you.  
>> It worked well when I tried it.
>> http://lists.samba.org/archive/samba/2010-February/153585.html

Thanks, I'll try it out shortly


On 02/16/2011 5:56 AM, Hans Otto Lunde wrote:
> Dear samba-users
>
> We are experiencing some rather long logon times using SAMBA 3.5.6 on Debian Squeeze + Windows 7 and while trying to find out why we raised the loglevel to 5 resulting in a rather large logfile. But this did give us a hint as to why we experience so long logon times. It seems that samba is going through the whole user-database with all usernames and machine-accounts.
> Eventually the user is logged in, but the experience is not ok, because of the long waiting-time.
>
> Has anyone had a similar experience?
>
> Here is a snippet from the log and below the smb.conf
>
> [2011/02/11 09:41:22.058237,  5] passdb/pdb_smbpasswd.c:527(getsmbfilepwent)
>    getsmbfilepwent: returning passwd entry for user siko, uid 2065
> [2011/02/11 09:41:22.058250,  5] passdb/pdb_smbpasswd.c:527(getsmbfilepwent)
>    getsmbfilepwent: returning passwd entry for user mami, uid 2066
> [2011/02/11 09:41:22.058263,  5] passdb/pdb_smbpasswd.c:527(getsmbfilepwent)
>    getsmbfilepwent: returning passwd entry for user GRWORK$, uid 2067
> [2011/02/11 09:41:22.058276,  5] passdb/pdb_smbpasswd.c:527(getsmbfilepwent)
>    getsmbfilepwent: returning passwd entry for user ruch, uid 2068
> [2011/02/11 09:41:22.058289,  5] passdb/pdb_smbpasswd.c:527(getsmbfilepwent)
>    getsmbfilepwent: returning passwd entry for user miko, uid 2069
> [2011/02/11 09:41:22.058306,  5] passdb/pdb_smbpasswd.c:527(getsmbfilepwent)
>    getsmbfilepwent: returning passwd entry for user elan, uid 2070
> [2011/02/11 09:41:22.058319,  5] passdb/pdb_smbpasswd.c:527(getsmbfilepwent)
>    getsmbfilepwent: returning passwd entry for user gaest, uid 2071
> [2011/02/11 09:41:22.058333,  5] passdb/pdb_smbpasswd.c:527(getsmbfilepwent)
>    getsmbfilepwent: returning passwd entry for user kepi, uid 2072
> [2011/02/11 09:41:22.058345,  5] passdb/pdb_smbpasswd.c:578(getsmbfilepwent)
>    getsmbfilepwent: end of file reached.
>
> When it reaches this line it starts all over again and continues doing so for about 30 seconds.
> This series of events has us quite baffled and any help resolving this would be greatly appreciated.
>
> smb.conf
>
> [global]
>          workgroup = EGMONT
>          netbios name = ESERVER
>          server string = Samba
>          hosts allow = 10.0.0.0/255.0.0.0 192.168.2.0/255.255.255.0
>          passdb backend = smbpasswd
>          passwd program = /usr/bin/passwd %u
>          passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
>          password server =
>          null passwords = no
>          invalid users = root daemon, bin, sys, sync, man, games, lp, mail, news, uucp, proxy, backup list, gnats, Debian-exim, statd, identd, sshd, ftp
>          guest account = nobody
>          restrict anonymous = 1   // 2 causes logon problems......
>          unix charset = UTF8
>          display charset = LOCALE
>          dos charset = CP850
>          log level = 0
>          log file = /var/log/samba/%m.log
>          max log size = 0
>          name resolve order = lmhosts wins bcast
>          disable netbios = no
>          socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>          logon script = %G.bat
>          logon path = \\%N\%U\.wincfg.V2
>          logon drive = h:
>          domain logons = yes
>          os level = 65
>          preferred master = yes
>          domain master = yes
>          local master = yes
>          security = user
>          dns proxy = no
>          wins support = yes
>          printing = cups
>          printcap name = cups
>          unix extensions = no
>          follow symlinks = no
> #WIN7
>          client NTLMv2 auth = yes
>          lanman auth = yes
>          ntlm auth = yes
>
> The rest of smb.conf is share- and printer defs
>
>
> --
> med venlig hilsen
>
> Hans Otto Lunde
> Højskolelærer/Systemadministrator
> Egmont Højskolen
> mobil: 61309336


More information about the samba mailing list