NTP Configuration [Was: Re: A successful Samba 4 deployment]

Adam Tauno Williams awilliam at whitemice.org
Mon Dec 6 08:27:17 MST 2010


On Fri, 2010-12-03 at 19:29 +0300, Matthieu Patou wrote: 
> > Running "strace -o file ntpd -dddd -n" and looking at stdout or the
> > trace information shows no attempt by ntpd to open a socket at the
> > specified location.
> > Hmmmm.....
> Show us the version of your ntp, and ntp.conf

ntpd - NTP daemon program - Ver. 4.2.6p2

server 127.127.1.0 # local clock (LCL)
server 192.168.1.9 # A functioning NTP server on the test network
fudge  127.127.1.0 stratum 10 # LCL is unsynchronized
driftfile /var/lib/ntp/drift/ntp.drift # path for drift file
logfile   /var/log/ntp # alternate log file
keys /etc/ntp.keys # path for keys file
trustedkey 1 # define trusted keys
requestkey 1 # key (7) for accessing server variables
# controlkey 15 # key (6) for accessing server variables
#restrict mynet mssntp
ntpsigndsocket /opt/ad/samba4/var/run/ntp_signd/socket
restrict default mssntp

Built with -

export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -W -Wall -Wstrict-prototypes
-Wpointer-arith -Wno-unused-parameter -fno-strict-aliasing
-fstack-protector"
CFLAGS="$RPM_OPT_FLAGS -fPIE" LDFLAGS="-pie" ./configure \
--with-binsubdir=bin \
--bindir=%{_sbindir} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
--enable-parse-clocks \
--enable-all-clocks \
--enable-linuxcaps \
--enable-ipv6 \
--with-sntp \
        --enable-ntp-signd

samba:/srv/cifs/test # ls -l  /opt/ad/samba4/var/run/ntp_signd/socket
srwxrwxrwx 1 root root 0 2010-12-06
09:50 /opt/ad/samba4/var/run/ntp_signd/socket
samba:/srv/cifs/test # fuser -u /opt/ad/samba4/var/run/ntp_signd/socket
/opt/ad/samba4/var/run/ntp_signd/socket:  3376(root)
samba:/srv/cifs/test # ps ax  | grep 3376
3376 ?        S      0:00 /opt/ad/samba4/sbin/samba




More information about the samba-technical mailing list