https://bugs.openldap.org/show_bug.cgi?id=9466
Issue ID: 9466 Summary: Since glibc 2.33 slapd shall initialize NSS before calling chroot Product: OpenLDAP Version: 2.4.57 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: dpa-openldap@aegee.org Target Milestone: ---
I use openldap 2.4 within chroot on a LFS. I call `slapd -r /home/openldap` .
With glibc 2.32 it worked fine without running nscd. Since I upgraded (on the host, thus outside the chrooted environment) slapd cannot work without running nscd (on the host, which socket is bind-mounted to /var/run/nscd/socket in the chrooted environment).
As outlined at https://sourceware.org/bugzilla/show_bug.cgi?id=27077 slapd shall first utilize NSS, e.g. by calling getpwuid or utilizing the host database, and then chroot(2).