[Samba] Time synchronization problem. Chrony, ntp

Programnet tomeks at programnet.eu
Sat Jan 18 08:48:34 UTC 2025


I noticed a problem with time synchronization on all Windows endpoints. 
I am using Samba 4.21.3 and Chrony 4.3-2.

When I run the following command in Windows:

w32tm /monitor
dc1.xxxx.pl *** PDC ***[192.168.45.10:123]:
ICMP: 1ms delay
NTP: +0.0000000s offset from dc1.xxxx.pl
RefID: time.cloudflare.com [162.159.200.123]
Stratum: 4
dc2.xxxx.pl[192.168.45.9:123]:
ICMP: 1ms delay
NTP: -0.0001207s offset from dc1.xxxx.pl
RefID: ntp1.orange.pl [80.50.102.114]
Stratum: 2

Warning:
Reverse name resolution is best effort. It may not be
correct since RefID field in time packets differs across
NTP implementations and may not be using IP addresses.

But when I run:

w32tm /resync
Sending resync command to local computer
The computer did not resync because no time data was available.

When I check on the DC servers with the |tcpdump| program, there is an 
incoming packet, but no outgoing packet.

I am sure this worked previously. It likely stopped working after 
upgrading to Samba version 4.21.1.

I configured Chrony based on the example:
https://samba.tranquil.it/doc/en/samba_config_server/debian/server_install_ntp_debian.html 
<https://samba.tranquil.it/doc/en/samba_config_server/debian/server_install_ntp_debian.html> 



More information about the samba mailing list