Hello,
I have an issue with nss-pam-ldapd (nslcd) inside a jail.
When the jail started nslcd do not work and say "Can't connect LDAP server".
After "service nslcd restart" all work as expected.
May be somebody can explain/help?
I have many tries myself, then with AI and no luck. Before AI give up it said:
"The Socket is not connected error happens when nslcd handles an early request
inside the jail while dropping root privileges (setuid). In a shared-IP jail
environment, FreeBSD's kernel enforces a strict network isolation rule: an
unprivileged process inside a jail is completely forbidden from creating an
outbound TCP socket (connect()) if it is inside a process path processing a
local UNIX domain socket loop check."
Jail is configured as:
# host shared loopback
ip6.addr += "hosl|1:2554:e::1/64";
# use casual ip4
ip4.addr = "$if_lan|192.168.0.113";
P.S.
System is 14-stable.
Things that doesn't help:
- adding ip4.add="lo0|127.1.0.1"
- prevent dropping privileges (uid root, gid wheel in nslcd.conf)
- running with "nscld_supervisior="YES" (through daemon)
- defining IP addresses (host(jail) itself, ldap servers) in /etc/hosts
- preventing any real query to ldap from nslcd before startup sequence end
--
Best regards,
Anthony Pankov mailto:[email protected]