Discussion:
[Samba] Samba 4 ad client not syncing time
Dante F. B. Colò
2016-08-01 16:56:06 UTC
Permalink
Hello folks

I've deployed Samba 4.0.26 using Sernet binary packages and running on active directory mode , everything works fine except that client machines don't sync time with server , ntp_signd is enabled in smb.conf , Ntpd is installed and running , is there anyway to debug this functionality on Samba ?
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
l***@gmail.com
2016-08-01 17:05:09 UTC
Permalink
Post by Dante F. B. Colò
Hello folks
I've deployed Samba 4.0.26 using Sernet binary packages and running on active directory mode , everything works fine except that client machines don't sync time with server , ntp_signd is enabled in smb.conf , Ntpd is installed and running , is there anyway to debug this functionality on Samba ?
Did you follow the wiki?

https://wiki.samba.org/index.php/Time_synchronisation

Are these Linux or Windows clients having trouble, or both?
--
-James
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Dante F. B. Colò
2016-08-01 17:14:15 UTC
Permalink
Hello James

I read this article, it's not working on Windows clients.



----- Original Message -----
From: ***@gmail.com
To: ***@lists.samba.org
Sent: Monday, August 1, 2016 2:05:09 PM
Subject: Re: [Samba] Samba 4 ad client not syncing time
Post by Dante F. B. Colò
Hello folks
I've deployed Samba 4.0.26 using Sernet binary packages and running on active directory mode , everything works fine except that client machines don't sync time with server , ntp_signd is enabled in smb.conf , Ntpd is installed and running , is there anyway to debug this functionality on Samba ?
Did you follow the wiki?

https://wiki.samba.org/index.php/Time_synchronisation

Are these Linux or Windows clients having trouble, or both?
--
-James
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
l***@gmail.com
2016-08-01 17:20:58 UTC
Permalink
Post by Dante F. B. Colò
Hello James
I read this article, it's not working on Windows clients.
----- Original Message -----
Sent: Monday, August 1, 2016 2:05:09 PM
Subject: Re: [Samba] Samba 4 ad client not syncing time
Post by Dante F. B. Colò
Hello folks
I've deployed Samba 4.0.26 using Sernet binary packages and running on active directory mode , everything works fine except that client machines don't sync time with server , ntp_signd is enabled in smb.conf , Ntpd is installed and running , is there anyway to debug this functionality on Samba ?
Did you follow the wiki?
https://wiki.samba.org/index.php/Time_synchronisation
Are these Linux or Windows clients having trouble, or both?
Is this a windows 7,8 or 10 client? From a elevated windows command
prompt type

'w32tm /config /update /manualpeerlist:IP-of-your-DC-with-ntp-running'

I assume it's working on the Linux side?
--
-James
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Dante F. B. Colò
2016-08-09 13:13:55 UTC
Permalink
yes, Ntpd is running on the same server that Samba is running which is ,I forgot to add "mssntp" on restrict parameter in ntp.conf, after that some client machines synced time with the server but not all of them , i can sync time manually on any windows machine using command "net time \\ntpserver /set /yes" but the w32tm command has no effect. Sorry for my late response, i'm struggling here to make this thing works, anyway thanks for the help.


----- Original Message -----
From: ***@gmail.com
To: "Dante F. B. Colò" <***@stwbrasil.com>
Cc: ***@lists.samba.org
Sent: Monday, August 1, 2016 2:20:58 PM
Subject: Re: [Samba] Samba 4 ad client not syncing time
Post by Dante F. B. Colò
Hello James
I read this article, it's not working on Windows clients.
----- Original Message -----
Sent: Monday, August 1, 2016 2:05:09 PM
Subject: Re: [Samba] Samba 4 ad client not syncing time
Post by Dante F. B. Colò
Hello folks
I've deployed Samba 4.0.26 using Sernet binary packages and running on active directory mode , everything works fine except that client machines don't sync time with server , ntp_signd is enabled in smb.conf , Ntpd is installed and running , is there anyway to debug this functionality on Samba ?
Did you follow the wiki?
https://wiki.samba.org/index.php/Time_synchronisation
Are these Linux or Windows clients having trouble, or both?
Is this a windows 7,8 or 10 client? From a elevated windows command
prompt type

'w32tm /config /update /manualpeerlist:IP-of-your-DC-with-ntp-running'

I assume it's working on the Linux side?
--
-James
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
L.P.H. van Belle
2016-08-09 14:08:20 UTC
Permalink
Hai,

Check a few things.

In ntp.conf
Rule 1 : DONT USE POOL NTP SERVERS !
Rule 2 : Use a stratum 1 ntp server close to you.
Look up here :
http://support.ntp.org/bin/view/Servers/StratumOneTimeServers

Now point all your DC's to the selected ntp server(s)

Add/change these lines to ntp.conf
restrict -4 default kod notrap nomodify nopeer noquery mssntp
restrict -6 default kod notrap nomodify nopeer noquery mssntp

and check if this is set in ntp.conf
ntpsigndsocket /var/lib/samba/ntp_signd

if you not using ipv6 for example, add these to ntp.conf
interface listen lo
interface listen eth0
interface ignore wildcard
interface ignore ipv6


Make sure in smb.conf is :

time server = yes

now restart ntp/samba or the whole server.
Reboot the pc.
Check time again.
If you pc time is off more then 5 min a manualy adjustment often is needed.

'w32tm /config /update /manualpeerlist:IP-of-your-DC-with-ntp-running'
Should not be needed.
Time is synced over the AD.
A good example can be found here.
https://blogs.technet.microsoft.com/nepapfe/2013/03/01/its-simple-time-configuration-in-active-directory/

Greetz,

Louis
-----Oorspronkelijk bericht-----
Verzonden: dinsdag 9 augustus 2016 15:14
Onderwerp: Re: [Samba] Samba 4 ad client not syncing time
yes, Ntpd is running on the same server that Samba is running which is ,I
forgot to add "mssntp" on restrict parameter in ntp.conf, after that some
client machines synced time with the server but not all of them , i can
sync time manually on any windows machine using command "net time
\\ntpserver /set /yes" but the w32tm command has no effect. Sorry for my
late response, i'm struggling here to make this thing works, anyway thanks
for the help.
----- Original Message -----
Sent: Monday, August 1, 2016 2:20:58 PM
Subject: Re: [Samba] Samba 4 ad client not syncing time
Post by Dante F. B. Colò
Hello James
I read this article, it's not working on Windows clients.
----- Original Message -----
Sent: Monday, August 1, 2016 2:05:09 PM
Subject: Re: [Samba] Samba 4 ad client not syncing time
Post by Dante F. B. Colò
Hello folks
I've deployed Samba 4.0.26 using Sernet binary packages and running on
active directory mode , everything works fine except that client machines
don't sync time with server , ntp_signd is enabled in smb.conf , Ntpd is
installed and running , is there anyway to debug this functionality on
Samba ?
Post by Dante F. B. Colò
Did you follow the wiki?
https://wiki.samba.org/index.php/Time_synchronisation
Are these Linux or Windows clients having trouble, or both?
Is this a windows 7,8 or 10 client? From a elevated windows command
prompt type
'w32tm /config /update /manualpeerlist:IP-of-your-DC-with-ntp-running'
I assume it's working on the Linux side?
--
-James
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Sketch
2016-08-01 18:06:44 UTC
Permalink
Post by Dante F. B. Colò
I've deployed Samba 4.0.26 using Sernet binary packages and running on
active directory mode , everything works fine except that client
machines don't sync time with server , ntp_signd is enabled in smb.conf
, Ntpd is installed and running , is there anyway to debug this
functionality on Samba ?
Did you also enable signed sockset support in ntp.conf?

ntpsigndsocket /var/lib/samba/ntp_signd/

I note that's a rather old version of Samba. What version of ntpd are you
running? If it's too old (<4.2.6), it might not even have signing
support. Also if you are using distro packages, you may want to download
the source package and make sure it was compiled with signing support. I
know at least some older 4.2.6 distro packages on RHEL/CentOS 6 were not
(though the current ones are).
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Continue reading on narkive:
Search results for '[Samba] Samba 4 ad client not syncing time' (Questions and Answers)
6
replies
Can you list your top __ linux aps? Make a list as long as you want.?
started 2007-03-08 19:18:06 UTC
software
Loading...