[Samba] Logging in taking too long with roaming profile (not large profile issue)

Damian Gerow damian at sentex.net
Tue Jul 29 13:38:58 GMT 2003


Thus spake Nathan Ehresman (nehresma at css.tayloru.edu) [29/07/03 08:50]:
> check out http://www.css.tayloru.edu/~nehresma/samba.html

Check out the logs -- this is a completely different problem.  Ed and I have
been working on this for some time now, and while your solution wards off
potential future problems, it doesn't fix the current problem.

We're not having the typical 'My profile is so big that it takes me ages to
log on' problem.  The actual profile takes seconds to load (we're on a 100Mb
LAN, so even *if* the profile was large, it shouldn't be too much of an
issue).

The problem we're having is that the XP Pro workstations are doing sweet
fsck all for ten minutes after logging in.  They open and close the netlogon
and profiles share, and that's about it.  From the logs:

    [2003/07/28 20:43:42, 2] auth/auth.c:check_ntlm_password(302)
      check_ntlm_password:  authentication for user [ekwan] -> [ekwan] -> [ekwan] succeeded
    [2003/07/28 20:43:43, 2] rpc_server/srv_samr_nt.c:_samr_lookup_domain(2526)
      Returning domain sid for domain SENTEX -> S-1-5-21-37384213-332261051-801720152
    [2003/07/28 20:43:43, 2] auth/auth.c:check_ntlm_password(302)
      check_ntlm_password:  authentication for user [ekwan] -> [ekwan] -> [ekwan] succeeded
    [2003/07/28 20:43:44, 1] smbd/service.c:make_connection_snum(692)
      cspc01 (192.168.42.205) connect to service profiles initially as user ekwan (uid=1007, gid=1032) (pid 57276)
    [2003/07/28 20:43:44, 2] smbd/open.c:open_file(240)
      ekwan opened file ekwan/ntuser.dat read=Yes write=No (numopen=1)
    [2003/07/28 20:43:44, 2] smbd/open.c:open_file(240)
      ekwan opened file ekwan/ntuser.ini read=Yes write=No (numopen=2)
    [2003/07/28 20:43:44, 2] smbd/close.c:close_normal_file(228)
      ekwan closed file ekwan/ntuser.dat (numopen=1) 
    [2003/07/28 20:43:44, 2] smbd/close.c:close_normal_file(228)
      ekwan closed file ekwan/ntuser.ini (numopen=0) 
    [2003/07/28 20:43:44, 2] smbd/open.c:open_file(240)
      ekwan opened file ekwan/ntuser.ini read=Yes write=No (numopen=1)
    [2003/07/28 20:43:45, 2] smbd/open.c:open_file(240)
      ekwan opened file ekwan/Cookies/index.dat read=Yes write=No (numopen=2)
    [2003/07/28 20:43:45, 2] smbd/close.c:close_normal_file(228)
      ekwan closed file ekwan/Cookies/index.dat (numopen=1) 
    [2003/07/28 20:43:45, 2] smbd/close.c:close_normal_file(228)
      ekwan closed file ekwan/ntuser.ini (numopen=0) 
    [2003/07/28 20:43:45, 1] smbd/service.c:make_connection_snum(692)
      cspc01 (192.168.42.205) connect to service netlogon initially as user ekwan (uid=1007, gid=1032) (pid 57276)
    [2003/07/28 20:43:53, 1] smbd/service.c:close_cnum(873)
      cspc01192.168.42.205) closed connection to service netlogon

    ( we get window 'loading your personal settings...')

    [2003/07/28 20:44:53, 1] smbd/service.c:close_cnum(873)
      cspc01 (192.168.42.205) closed connection to service profiles
    [2003/07/28 20:44:53, 2] smbd/server.c:exit_server(558)
      Closing connections
    [2003/07/28 20:53:12, 2] auth/auth.c:check_ntlm_password(302)
      check_ntlm_password:  authentication for user [ekwan] -> [ekwan] -> [ekwan] succeeded
    [2003/07/28 20:53:12, 1] smbd/service.c:make_connection_snum(692)
      cspc01 (192.168.42.205) connect to service netlogon initially as user ekwan (uid=1007, gid=1032) (pid 57297)
    [2003/07/28 20:53:12, 0] smbd/service.c:set_current_service(56)
      chdir (/usr/local/etc/samba/netlogon) failed
    [2003/07/28 20:53:14, 1] smbd/service.c:make_connection_snum(692)
      cspc01 (192.168.42.205) connect to service ekwan initially as user ekwan (uid=1007, gid=1032) (pid 57297)
    [2003/07/28 20:53:15, 2] smbd/open.c:open_file(240)
      ekwan opened file .windows_settings/Application Data/Microsoft/Internet Explorer/Quick Launch/desktop.ini read=Yes write=No (numopen=2)

So in this logon sequence, we get the domain SID, successfully authenticate,
open up ntuser.dat and ntuser.ini, open a connection to netlogon, and close
the connection to netlogon.

A minute later we open a connection to profiles, then close all connections
(?), and *nine* minutes later, we re-authenticate, load the profile, and
we're done.  For the life of me, I don't know what the workstation is doing,
or how to find that out.



More information about the samba mailing list