documentation_complete: true


title: 'Enable the NTP Daemon'

description: |-
    {{{ describe_service_enable(service="ntp") }}}

rationale: |-
    Enabling the <tt>ntp</tt> service ensures that the <tt>ntp</tt>
    service will be running and that the system will synchronize its time to
    any servers specified. This is important whether the system is configured to be
    a client (and synchronize only its own clock) or it is also acting as an NTP
    server to other systems.  Synchronizing time is essential for authentication
    services such as Kerberos, but it is also important for maintaining accurate
    logs and auditing possible security breaches.
    <br /><br />
    The NTP daemon offers all of the functionality of <tt>ntpdate</tt>, which is now
    deprecated.

severity: high

platform: package[ntp]

identifiers:
    cce@sle12: CCE-91657-7
    cce@sle15: CCE-91294-9

references:
    cis-csc: 1,14,15,16,3,5,6
    cobit5: APO11.04,BAI03.05,DSS05.04,DSS05.07,MEA02.01
    isa-62443-2009: 4.3.3.3.9,4.3.3.5.8,4.3.4.4.7,4.4.2.1,4.4.2.2,4.4.2.4
    isa-62443-2013: 'SR 2.10,SR 2.11,SR 2.12,SR 2.8,SR 2.9'
    iso27001-2013: A.12.4.1,A.12.4.2,A.12.4.3,A.12.4.4,A.12.7.1
    nist: CM-6(a),AU-8(1)(a)
    nist-csf: PR.PT-1
    pcidss: Req-10.4

ocil: |-
    {{% if product == "debian13" %}}
    {{{ ocil_service_enabled(service="ntpsec") }}}
    {{% else %}}
    {{{ ocil_service_enabled(service="ntp") }}}
    {{% endif %}}
    
template:
    name: service_enabled
    vars:
        servicename: ntp
        servicename@debian13: ntpsec

{{% if product in ["sle15"] or 'rhel' in product %}}
warnings:
    - general:
        The <pre>ntp</pre> package is not available in {{{ full_name }}}. Please
        consider the <pre>chrony</pre> package instead together with the respective <pre>service_chronyd_enabled</pre> rule.
{{% endif %}}
