After upgrading to nss-pam-ldapd-0.9.10 starting nslcd results in: bind() to /var/run/nslcd.ctl failed: Permission denied This can be worked around by removing the uid nslcd gid nslcd lines in /usr/local/etc/nslcd.conf. With 0.9.9 this used to work.
A commit references this bug: Author: zi Date: Mon Sep 10 16:30:51 UTC 2018 New revision: 479439 URL: https://svnweb.freebsd.org/changeset/ports/479439 Log: - Resolve socket permission issues - Bump PORTREVISION PR: 231278 [1] Reported by: Matthias Pfaller <matthias.pfaller@familie-pfaller.de> [1], Johan Hendriks <joh.hendriks@gmail.com> Changes: head/net/nss-pam-ldapd/Makefile head/net/nss-pam-ldapd/files/nslcd.in
Just to be clear: it is not recommended to remove the uid/gid lines as this will cause nslcd to not drop privs and continue to run as root.