The issue concerns an unintended default absence of SSL Certificate Validation for LDAP in NixOS. Specifically, the users.ldap NixOS module, which implements user authentication against LDAP servers via a PAM module, unconditionally disables peer verification in /etc/ldap.conf when TLS is enabled to connect to the LDAP server with users.ldap.useTLS.