LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-10-2007, 12:15 AM   #1
rolandpish
Member
 
Registered: May 2007
Posts: 30

Rep: Reputation: 0
Samba domain clients take too long to log in


Hi there,
I have a Samba+LDAP Debian box as a primary domain controller.
I configured the server in order to support roaming profiles.

Everything is working perfectly. Roaming profiles are loaded and
saved correctly from the server for every user on the domain.
The big problem is this: after typing username and password from
a Windows XP client computer, it starts reading the profile from the
samba server; it says: loading settings, then it says: applying settings,
then it becomes stalled, and after about 2 minutes the computer starts
to load the desktop.

I have these packages installed: dhcp3-server, bind9, openldap (and required packages as libnss-ldap, libpam-ldap, etc) and samba server.
Do I need something else (a package or configuration) in order to
avoid this?
Why do clients last too much before the Windows desktop is ready to use?

I would really appreciate your help because I have days fighting with this and I have mad users at me and I don't know what to do.

Best Regards

Just in case, this is my smb.conf:

# /etc/samba/smb.conf
# samba configuration file

[global]
workgroup = linuxnet
netbios name = smbserver
server string = Samba PDC Version %v
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192

os level = 65
preferred master = yes
local master = yes
domain master = yes
domain logons = yes

security = user
guest ok = no
encrypt passwords = yes
null passwords = no
hosts allow = 127.0.0.1 192.168.2.0/255.255.255.0
# NOTE: I had to disable wins support because clients weren't able
# to join the domain. Once I disabled wins support clients joined the
# domain succesfully
#name resolve order = wins lmhosts host bcast
#wins support = yes
#dns proxy = no

time server = yes

log file = /var/log/samba/log.%m
log level = 2
max log size = 50
hide unreadable = yes
hide dot files = yes

# LDAP
passdb backend = ldapsam:ldap://127.0.0.1
ldap suffix = dc=linuxnet
ldap machine suffix = ou=machines
ldap user suffix = ou=users
ldap group suffix = ou=groups
ldap admin dn = cn=admin,dc=linuxnet
ldap delete dn = no
enable privileges = yes
ldap password sync = yes

# roaming profiles
logon home = \\%L\%U\.profile
logon drive = H:
logon path = \\%L\profiles\%U
logon script = netlogon.bat OR %U.bat

add machine script = /usr/sbin/smbldap-useradd -w "%u"

#=== SAMBA SHARES ===

[netlogon]
path = /home/samba/netlogon
guest ok = no
read only = yes
browseable = no

[homes]
path = /home/users/%U
comment = HOME Folders
browseable = no
writeable = yes
valid users = %S
read only = no
guest ok = no
inherit permissions = yes

[profiles]
path = /home/samba/profiles
read only = no
writeable = yes
browseable = no
guest ok = no
hide files = /desktop.ini/ntuser.ini/NTUSER.*/
create mask = 0600
directory mask = 0700
csc policy = disable
profile acls = yes

Last edited by rolandpish; 05-10-2007 at 12:27 AM.
 
Old 05-10-2007, 01:01 AM   #2
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
Check your user's desktop - I have a very similar setup here, and having a lot of data on the desktop delays login (and logout)...

Not sure what the underlying reason is, but removing large data from the desktop greatly speeds login and logout.
 
Old 05-10-2007, 10:09 AM   #3
rolandpish
Member
 
Registered: May 2007
Posts: 30

Original Poster
Rep: Reputation: 0
Thanks for your reply fukawi2. In fact, client computer has only one folder in its desktop, and it's empty. I created that folder for testing purposes.
I forgot to mention that logout process is very fast and normal, the problem is with the login process.
Best Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Win2000 clients does not regognize Samba PDC's domain vanaheim Linux - Networking 0 03-16-2004 02:31 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
getting win2k clients to domain logon to samba sun4fun Linux - Networking 1 09-21-2003 03:19 PM
XP clients as the member of the samba domain. bally Linux - General 7 08-27-2003 01:46 AM
Samba: W2k clients cannot login after joining domain Ajentsmith Linux - Networking 2 09-04-2002 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration