I see that the w32time service as it is configured when a Win2K Pro client joins a Samba PDC Domain is not configured in such a way that the service is able to successfully sync time with Samba. I:\>w32tm -source -v W32Time: BEGIN:InitAdjIncr W32Time: Adj 100144 , Incr 100144 fAdjust 0 W32Time: END:Line 2503 W32Time: BEGIN:TsUpTheThread W32Time: END Line 1407 W32Time: TimeMMInit() W32Time: Kernel timer : using default maximum resolution W32Time: MaximumTime = 100144 W32Time: CurrentTime = 100144 W32Time: Timer calibrated, looped 1 times W32Time: BEGIN:InitTmCfg W32Time: END:Line 807 W32Time: BEGIN:InitTmCli W32Time: END:Line 2596 W32Time: BEGIN:InitTmData W32Time: END:Line 2618 W32Time: AvoidTimeSyncOnWan 0 W32Time: BEGIN:CMOSSynchSet W32Time: Setting adjustment 100144 - Bool 0 W32Time: BEGIN:SetTSTimeRes W32Time: END:Line 1295 W32Time: END:Line 864 W32Time: BEGIN:InitializeDC W32Time: BEGIN:GetRole W32Time: Role is 'workstation' W32Time: END Line 672 W32Time: END:Line 704 W32Time: BEGIN:FDoNT5DSType W32Time: BEGIN:FBuildDCList W32Time: BEGIN:GetNT5DCAddress W32Time: Member of an NT4 domain. Cannot synchronize. W32Time: END Line 196 W32Time: BEGIN:GetNT5DCAddress W32Time: Member of an NT4 domain. Cannot synchronize. W32Time: END Line 196 W32Time: END Line 639 W32Time: DC lookup failed. 15 min until lookup is allowed again. W32Time: END Line 971 Is there a configuration which will keep the w32time NTP server field populated with what DHCP offers as an NTP server? I do have "option ntp-servers #.#.#.#;" in the DHCP configuration, so with getting that plugged in to the w32time service parameters, then I would just need to flip the server type configuration to NTP. TIA! -- Michael Lueck Lueck Data Systems http://www.lueckdatasystems.com/ Remove the upper case letters NOSPAM to contact me directly.
So close to working that this is annoying. Upon looking into the Windows DHCP client, one can request specific DHCP options be mapped to specific places in the registry, so I cooked up the following: REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dhcp\Parameters\Options\4] "RegLocation"="SYSTEM\\CurrentControlSet\\Services\\W32Time\\Parameters\\NtpServer" "KeyType"=dword:00000001 Reboot and NADDA. Made the NtpServer string and left it empty, still nadda. Looks like this is getting to be more of a dhcp Q than Samba... but while here anyone actually successfully fetch the ntp server name out of a DHCP server with a Windows client successfully? Everyone, including the Samba docs suggest setting the option on the server, but I am yet to see an example of using that field on a Windows client. Enough for a night... I don't love MS this much to stay up more! Besides, just logon with too much permission and happen to leave NET TIME %LOGONSERVER% /SET /Y in your logon script, right?! ;-) -- Michael Lueck Lueck Data Systems http://www.lueckdatasystems.com/ Remove the upper case letters NOSPAM to contact me directly.
Michael Lueck
2005-Nov-10 13:03 UTC
[Samba] Have to love MS, Was: -> Re: w32time and Samba PDC Domains
Michael Lueck wrote:> So close to working that this is annoying. Upon looking into the Windows > DHCP client, one can request specific DHCP options be mapped to specific > places in the registry, so I cooked up the following: > > REGEDIT4 > > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dhcp\Parameters\Options\4] > > "RegLocation"="SYSTEM\\CurrentControlSet\\Services\\W32Time\\Parameters\\NtpServer" > > "KeyType"=dword:00000001I ended up doing RegMon through a DHCP release/renew... nadda. RegMon through an IPL of the computer... nadda! It would appear to me that this above functionality has been disabled in Win2K SP4, or who knows... The "Options" area under DHCP\Parameters never got touched - my added key or any of the existing ones. Might just as well come up with another solution then. Just thought I would update on where this path ended. -- Michael Lueck Lueck Data Systems http://www.lueckdatasystems.com/ Remove the upper case letters NOSPAM to contact me directly.