[Samba] fixed delay logging onto Samba3.3 from Vista Business

David Mathog mathog at caltech.edu
Thu May 27 11:33:57 MDT 2010


> The domain user does login eventually.  Mostly.  Roaming Profiles are
> very broken on W7: the top level "Vista.V2" directory is created, but
> nothing is stored back into it on the server, and the logged in domain
> user ends up with a C:\Users\Temp profile. 

Thanks to Drew Vonada-Smith the roaming profiles are working again.  The
problem was that information stored in
HKLM\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Profilelist for the
user while trying logins while setting up the system got out of sync
with the actual server configuration.  Deleting the entry for any
existing users let them login with a functioning roaming profile. 
Unfortunately this did nothing about the fixed delays observed of 30s
and 15s.  Here is part of the netlogon.log for the slow parts of a
domain user with a working (small = 2.5MB) profile.  The 30s gap starts
at 10:05:53, and the 15s gap at 10:06:23.

05/27 10:05:51 [LOGON] SamLogon: Interactive logon of SAF\mathog from
SAF04 Entered
05/27 10:05:52 [LOGON] SamLogon: Interactive logon of SAF\mathog from
SAF04 Returns 0x0
05/27 10:05:52 [MISC] DsGetDcName function called: Dom:SAF Acct:(null)
Flags: DS 
05/27 10:05:52 [MISC] NetpDcInitializeContext: DSGETDC_VALID_FLAGS is
c01ffff1
05/27 10:05:52 [MISC] NetpDcGetName: SAF: Only try once to find NT 5.0
DC in NT 4.0 domain.
05/27 10:05:52 [MAILSLOT] Sent 'Sam Logon' message to SAF[1C] on all
transports.
05/27 10:05:52 [CRITICAL] NetpDcMatchResponse: SAFSERVER: SAF: response
not from DS server. 0x0
05/27 10:05:52 [MISC] NetpDcGetName: NetpDcGetNameNetbios returned 121
05/27 10:05:52 [MISC] NetpDcGetName: SAF: Only try once done.
05/27 10:05:52 [MISC] NetpDcGetName: SAF: Domain is an NT 4.0 domain.
05/27 10:05:52 [MISC] DsGetDcName function returns 1355: Dom:SAF
Acct:(null) Flags: DS 
05/27 10:05:53 [MISC] DsGetDcName function called: Dom:SAF Acct:(null)
Flags: DSP 
05/27 10:05:53 [MISC] NetpDcInitializeContext: DSGETDC_VALID_FLAGS is
c01ffff1
05/27 10:05:53 [MISC] NetpDcGetName: SAF: Avoid finding NT 5.0 DC in NT
4.0 domain (Use previously cached entry.)
05/27 10:05:53 [MISC] DsGetDcName function returns 0: Dom:SAF
Acct:(null) Flags: DSP 
05/27 10:06:23 [MISC] DsGetDcName function called: Dom:SAF Acct:(null)
Flags: DSP 
05/27 10:06:23 [MISC] NetpDcInitializeContext: DSGETDC_VALID_FLAGS is
c01ffff1
05/27 10:06:23 [MISC] NetpDcGetName: SAF: Avoid finding NT 5.0 DC in NT
4.0 domain (Use previously cached entry.)
05/27 10:06:23 [MISC] DsGetDcName function returns 0: Dom:SAF
Acct:(null) Flags: DSP 
05/27 10:06:38 [MISC] DsGetDcName function called: Dom:SAF Acct:(null)
Flags: IP KDC 
05/27 10:06:38 [MISC] NetpDcInitializeContext: DSGETDC_VALID_FLAGS is
c01ffff1
05/27 10:06:38 [MISC] NetpDcGetName: SAF: Avoid finding NT 5.0 DC in NT
4.0 domain
05/27 10:06:38 [MISC] DsGetDcName function returns 1355: Dom:SAF
Acct:(null) Flags: IP KDC 
05/27 10:06:38 [MISC] DsGetDcName function called: Dom:SAF Acct:(null)
Flags: IP KDC 
05/27 10:06:38 [MISC] NetpDcInitializeContext: DSGETDC_VALID_FLAGS is
c01ffff1
05/27 10:06:38 [MISC] NetpDcGetName: SAF: Avoid finding NT 5.0 DC in NT
4.0 domain
05/27 10:06:38 [MISC] DsGetDcName function returns 1355: Dom:SAF
Acct:(null) Flags: IP KDC 
05/27 10:06:39 [MISC] DsGetDcName function called: Dom:SAF Acct:(null)
Flags: DS NETBIOS RET_DNS 
05/27 10:06:39 [MISC] NetpDcInitializeContext: DSGETDC_VALID_FLAGS is
c01ffff1
05/27 10:06:39 [MISC] NetpDcGetName: SAF: Avoid finding NT 5.0 DC in NT
4.0 domain
05/27 10:06:39 [MISC] DsGetDcName function returns 1355: Dom:SAF
Acct:(null) Flags: DS NETBIOS RET_DNS 
05/27 10:06:39 [MISC] DsGetDcName function called: Dom:SAF Acct:(null)
Flags: DS RET_DNS 
05/27 10:06:39 [MISC] NetpDcInitializeContext: DSGETDC_VALID_FLAGS is
c01ffff1
05/27 10:06:39 [MISC] NetpDcGetName: SAF: Avoid finding NT 5.0 DC in NT
4.0 domain
05/27 10:06:39 [MISC] DsGetDcName function returns 1355: Dom:SAF
Acct:(null) Flags: DS RET_DNS 
05/27 10:06:39 [MISC] DsGetDcName function called: Dom:SAF Acct:(null)
Flags: DSP 
05/27 10:06:39 [MISC] NetpDcInitializeContext: DSGETDC_VALID_FLAGS is
c01ffff1
05/27 10:06:39 [MISC] NetpDcGetName: SAF: Avoid finding NT 5.0 DC in NT
4.0 domain (Use previously cached entry.)

I went through the event logs, and there was one interesting entry. 
Also at 10:05:53 in the system log there was an event 7001 (1101), 
"User Logon Notification for Customer Experience Improvement Program".
Have to run tcpdump on the server and see what happens at corresponding
times...

Nobody knows what causes these delays???

David Mathog
mathog at caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech


More information about the samba mailing list