{"id":1554,"date":"2019-03-21T14:30:52","date_gmt":"2019-03-21T13:30:52","guid":{"rendered":"http:\/\/clark.tipistrani.it\/?p=1554"},"modified":"2019-11-13T14:09:17","modified_gmt":"2019-11-13T13:09:17","slug":"ntp-conf-per-samba-4-ad-dc","status":"publish","type":"post","link":"http:\/\/clark.tipistrani.it\/?p=1554","title":{"rendered":"ntp.conf per samba 4 AD-DC"},"content":{"rendered":"<p>Samba 4 pu\u00f2 fare da active directory domain control in un dominio, tra le funzioni di un AD-DC c&#8217;\u00e8&#8217; anche quella di mantenere sincronizzata l&#8217;ora di tutti i client collegati, samba si pu\u00f2 appoggiare per questa funzione a ntpd.<br \/>\nLo scenario \u00e8 il seguente:<\/p>\n<p>macchina virtuale su xen<br \/>\ndistribuzione Devuan ascii amd64<br \/>\nsamba 4.9.4 compilato da sorgenti<br \/>\napt-get install ntp<\/p>\n<p>\/etc\/init.d\/ntp stop<br \/>\nchown root:ntp \/usr\/local\/samba\/var\/lib\/ntp_signd\/<br \/>\nchmod 750 \/usr\/local\/samba\/var\/lib\/ntp_signd\/<br \/>\nmv \/etc\/ntp.conf ntp.orig<br \/>\nvim ntp.conf<\/p>\n<p>server 127.127.1.0<br \/>\nfudge 127.127.1.0 stratum 10<br \/>\ndriftfile \/var\/lib\/ntp\/ntp.drift<br \/>\nlogfile \/var\/log\/ntp<br \/>\nntpsigndsocket \/usr\/local\/samba\/var\/lib\/ntp_signd\/<br \/>\nstatistics loopstats peerstats clockstats<br \/>\nfilegen loopstats file loopstats type day enable<br \/>\nfilegen peerstats file peerstats type day enable<br \/>\nfilegen clockstats file clockstats type day enable<br \/>\nserver 0.debian.pool.ntp.org iburst prefer<br \/>\nserver 1.debian.pool.ntp.org iburst prefer<br \/>\nserver 2.debian.pool.ntp.org iburst prefer<br \/>\nserver 3.debian.pool.ntp.org iburst prefer<br \/>\nrestrict -4 default kod nomodify notrap nopeer mssntp<br \/>\nrestrict -6 default kod nomodify notrap nopeer mssntp<br \/>\nrestrict 127.0.0.1<br \/>\nrestrict ::1<br \/>\nrestrict 0.debian.pool.ntp.org mask 255.255.255.255 nomodify notrap nopeer noquery<br \/>\nrestrict 1.debian.pool.ntp.org mask 255.255.255.255 nomodify notrap nopeer noquery<br \/>\nrestrict 2.debian.pool.ntp.org mask 255.255.255.255 nomodify notrap nopeer noquery<br \/>\nrestrict 3.debian.pool.ntp.org mask 255.255.255.255 nomodify notrap nopeer noquery\/<\/p>\n<p>tinker panic 0<\/p>\n<p>L&#8217;ultima voce \u00e8 da mettere solo se la macchina \u00e8 virtuale.<\/p>\n<p>\/etc\/init.d\/ntp start<br \/>\nda questo momento tuti i client windows collegati al dominio prenderanno l&#8217;ora dal DC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Samba 4 pu\u00f2 fare da active directory domain control in un dominio, tra le funzioni di un AD-DC c&#8217;\u00e8&#8217; anche quella di mantenere sincronizzata l&#8217;ora di tutti i client collegati, samba si pu\u00f2 appoggiare per questa funzione a ntpd. Lo scenario \u00e8 il seguente: macchina virtuale su xen distribuzione Devuan ascii amd64 samba 4.9.4 compilato [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,11,6],"tags":[147,146,84],"class_list":["post-1554","post","type-post","status-publish","format-standard","hentry","category-linux","category-samba","category-work","tag-ad-dc","tag-ntp-conf","tag-samba4"],"_links":{"self":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1554"}],"version-history":[{"count":3,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1554\/revisions"}],"predecessor-version":[{"id":1642,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1554\/revisions\/1642"}],"wp:attachment":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1554"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}