Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 375159

Summary: >net-misc/ntp-4.2.6: add USE flag to control ntp-signd for samba active directory controllers
Product: Gentoo Linux Reporter: the_mgt <themgt>
Component: [OLD] ServerAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://www.whitemiceconsulting.com/2010/12/configuration-of-ntp-for-samba4.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: mssntp patch against ntp-4.2.6_p3.ebuild

Description the_mgt 2011-07-14 09:31:19 UTC
"[...]Active Directory clients [such as Windows 7] require an MS-SNTP server that cryptographically signs the response." This feature has been build into the latest ntp versions and it is used by samba4 (alpha) releases. It just requires one simple use_enable switch (--enable-ntp-signd) and two configuration lines. I created a patch for the current 4.2.6_p3 ebuild and tried it on my network, seems to work flawless.

Reproducible: Always




If your ntpuses caps, you'll need chmod and chown the directory containing the samba socket.

For further information, look at these howtos:
http://wiki.samba.org/index.php/Samba4/HOWTO
http://en.gentoo-wiki.com/wiki/Samba4_as_Active_Directory_Server#NTP_.28recommended.29

The two config lines:
ntpsigndsocket /var/run/samba/ntp_signd/
restrict default mssntp
Comment 1 the_mgt 2011-07-14 09:34:08 UTC
Created attachment 280045 [details, diff]
mssntp patch against ntp-4.2.6_p3.ebuild
Comment 3 Mark LaCroix 2011-10-27 05:31:29 UTC
This resolution is incorrect. The appropriate option is --enable-ntp-signd
Comment 4 the_mgt 2011-10-27 16:33:16 UTC
(In reply to comment #3)
> This resolution is incorrect. The appropriate option is --enable-ntp-signd

Sorry? But that is what is used here (and described above) and it also works, verified by the logs and my win7 clients being able to sync time. You might have been confused by the syntax of the patch, but that is just the gentoo way of doing it.
Comment 5 SpanKY gentoo-dev 2011-10-27 23:33:58 UTC
i think his point is:
-use_with
+use_enable

not sure why the configure script doesn't warn about the unknown flag considering it's been generated with the latest autoconf ...
Comment 6 SpanKY gentoo-dev 2011-10-27 23:36:30 UTC
should be all set now in the tree; thanks for the report!

Commit message: Fix typo in ntp-signd flag
http://sources.gentoo.org/net-misc/ntp/ntp-4.2.6_p3-r1.ebuild?r1=1.2&r2=1.3
http://sources.gentoo.org/net-misc/ntp/ntp-4.2.6_p4.ebuild?r1=1.1&r2=1.2