[Samba] NT logon ok but XP logon very slow

Roel Slegers deroel at gmail.com
Fri Apr 21 15:48:27 GMT 2006

We don't use roaming profiles, they're disabled ('logon path' and
'logon home' are null for all users and in smb.conf).
Moreover, I'm really under the impression that the smbd process just
freezes. During a couple of minutes there's no activity in log.smbd. I
also monitored the smbd with HP's 'tusc' tool, which allows monitoring
the system calls a process makes, and the smbd process just seems to
do nothing at all (no system calls) but take up all CPU.
We do have logon scripts, and an NT system policy file, but disabling
those didn't help either.

BTW, this is our current smb.conf:

--- smb.conf ---
        workgroup = VERONIKX_DOM

        domain master = yes
        domain logons = yes

        passdb backend = ldapsam:ldap://localhost:390
        ldap port = 390
        guest account = www

        admin users = admin

        create mask = 0664
        directory mask = 0775

        Unix charset = ISO8859-1
        printcap name = lpstat

        ldap admin dn = cn=smbadmin,dc=fedpol,dc=be
        ldap group suffix = ou=Groups
        ldap machine suffix = ou=Computers
        ldap suffix = dc=fedpol,dc=be
        ldap ssl = no
        ldap user suffix = ou=People
        ldap idmap suffix = ou=Idmap

        logon path =
        logon drive = X:
        logon home =

        log level = 1

# smbldap-tools requirements
        ldap delete dn = Yes

        add user script = /opt/smbldap-tools/sbin/smbldap-useradd -m "%u"
        delete user script = /opt/smbldap-tools/sbin/smbldap-userdel -r "%u"
        add machine script = /opt/pip/system/smb-add-machine "%u"
        add group script = /opt/smbldap-tools/sbin/smbldap-groupadd -p "%g"
        delete group script = /opt/smbldap-tools/sbin/smbldap-groupdel "%g"
        add user to group script = /opt/smbldap-tools/sbin/smbldap-groupmod -m "
%u" "%g"
        delete user from group script = /opt/smbldap-tools/sbin/smbldap-groupmod
 -x "%u" "%g"
        set primary group script = /opt/smbldap-tools/sbin/smbldap-usermod -g "%
g" "%u"

# All services (shares) are defined in this seperate file, which
# is automatically generated by lmshare (lmshare.pkg):

        include = /usr/local/samba/lib/smb-shares.conf
--- End of smb.conf ---

2006/4/21, Gary Dale

> While the developers in this forum can probably give you some ideas on
> how to improve the situation, I suspect that it is a by-product of
> roaming profiles. The way I understand it, a copy of your "C:\Documents
> & Settings\username" folder is stored on the server and this is
> synchronised with your local version on startup and shutdown. Depending
> on what you've been doing, this synching can take a considerable amount
> of time.
> One way to minimize the impact is to store your documents in a personal
> folder on the network, rather than in "My Documents". This way, the
> synching has less to do.

More information about the samba mailing list