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

Daniel Müller mueller at tropenklinik.de
Thu Feb 17 03:24:26 MST 2011


This is on behalf of the windows 7 machines. Did you change the registry settings?
This could help:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanWorkstation\Parameters] 
"DomainCompatibilityMode"=dword:00000001 
"DNSNameResolutionRequired"=dword:00000000 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\] 
“LmCompatibilityLevel”=dword:00000000 
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Netlogon\Parameters] 
"Update"="no" 
"DisablePasswordChange"=dword:00000000 
"MaximumPasswordAge"=dword:0000001e 
"RequireSignOrSeal"=dword:00000001 
"RequireStrongKey"=dword:00000001 
"SealSecureChannel"=dword:00000001 
"SignSecureChannel"=dword:00000001

-----------------------------------------------
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mueller at tropenklinik.de
Internet: www.tropenklinik.de
-----------------------------------------------

-----Ursprüngliche Nachricht-----
Von: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org] Im Auftrag von Hans Otto Lunde
Gesendet: Mittwoch, 16. Februar 2011 12:56
An: samba at lists.samba.org
Betreff: [Samba] Loooooong logon-times using samba 3.5.6 and Windows 7

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
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list