Domain Controller: LDAP connections must be terminated after five minutes of inactivity

98825d6b-d830-4e25-aab3-815f56790a77

The failure to terminate inactive network connections increases the risk of a successful attack on the directory server. The longer an established session is in progress, the more time an attacker has to hijack the session, implement a means to passively intercept data, or compromise any protections on client access. For example, if an attacker gains control of a client computer, an existing (already authenticated) session with the directory server could allow access to the directory. The lack of confidentiality protection in LDAP-based sessions increases exposure to this vulnerability.

Satisfies: SRG-OS-000163-GPOS-00072, SRG-OS-000279-GPOS-00109

Remediation

Configure the directory service to terminate LDAP-based network connections to the directory server after 5 minutes of inactivity.

Open an elevated "Command prompt" (run as administrator).

Enter "ntdsutil".

At the "ntdsutil:" prompt, enter "LDAP policies".

At the "ldap policy:" prompt, enter "connections".

At the "server connections:" prompt, enter "connect to server [host-name]" (where [host-name] is the computer name of the domain controller).

At the "server connections:" prompt, enter "q".

At the "ldap policy:" prompt, enter "Set MaxConnIdleTime to 300".

Enter "Commit Changes" to save.

Enter "Show values" to verify changes.

Enter "q" at the "ldap policy:" and "ntdsutil:" prompts to exit.

STIG: Server
2025: https://system32.eventsentry.com/stig/viewer/V-278147
2022: https://system32.eventsentry.com/stig/viewer/V-254400
2019: https://system32.eventsentry.com/stig/viewer/V-205726
2016: https://system32.eventsentry.com/stig/viewer/V-224979

NIST 800-53: AC-12, SC-10
NIST 800-171: 3.1.11, 3.13.9
CMMC v2.0 L2: AC.L2-3.1.11, SC.L2-3.13.9
PCI-DSS v4.0: 8.2.8
HIPAA SR: ยง164.312(a)(2)(iii)
HIPAA HICP: Practice 3 (Identity and Access Management), Practice 6 (Network Management)