Bug 293531 - net/openldap26-server: add `nssov` overlay to enable baked in nslcd(8) socket protocol
Summary: net/openldap26-server: add `nssov` overlay to enable baked in nslcd(8) socket...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Xin LI
URL: https://github.com/openldap/openldap/...
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-01 18:09 UTC by yds
Modified: 2026-03-01 19:01 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (delphij)


Attachments
add `nssov` overlay to enable baked in nslcd(8) socket protocol (5.27 KB, patch)
2026-03-01 18:09 UTC, yds
no flags Details | Diff
add `nssov` overlay to enable baked in nslcd(8) socket protocol (4.96 KB, patch)
2026-03-01 19:01 UTC, yds
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description yds 2026-03-01 18:09:34 UTC
Created attachment 268457 [details]
add `nssov` overlay to enable baked in nslcd(8) socket protocol

this patch adds an option to build the `nssov` NSS/PAM overlay to enable baked in nslcd(8) socket protocol

this allows for using ports/net/nss-pam-ldapd[-sasl] without the need to run the nslcd(8) server

slapd(8) with `nssov` does everything nslcd(8) can do and then some.

with `nssov` enabled `slapd` will create the same nslcd(8) socket configured in ports/net/nss-pam-ldapd[-sasl] that nslcd(8) would create speaking the same protocol.

this patch ensures the single source of truth for configuring the NSLCD_SOCKET path is fetched from ports/net/nss-pam-ldapd[-sasl] settings.

e.g. when using ports/ports-mgmt/portconf then this setting in /usr/local/etc/ports.conf:
```
net/nss-pam-ldapd*: NSLCD_VARDIR=/var/run/openldap
```
will ensure all three of these ports will build with the same exact NSLCD_SOCKET path hardcoded at build time:

net/nss-pam-ldapd
net/nss-pam-ldapd-sasl
net/openldap26-server

this patch defaults to using the same NSLCD_SOCKET path already being used by the net/nss-pam-ldapd[-sasl] packages -- rebuilding those ports is not needed to start using slapd(8)/nssov as a replacement for nslcd(8)
Comment 1 yds 2026-03-01 19:01:25 UTC
Created attachment 268459 [details]
add `nssov` overlay to enable baked in nslcd(8) socket protocol

removed `NSSOV_CONFIGURE_ENABLE= nssov=mod` from the patch -- not needed, throws a WARNIN G