[Nix-dev] getent LD_LIBRARY_PATH
Eelco Dolstra
eelco.dolstra at logicblox.com
Mon Dec 10 16:47:25 CET 2012
Hi,
On 10/12/12 16:39, Rickard Nilsson wrote:
> I investigated an issue I have with getent, where LDAP entries don't show
> up when I run 'getent passwd'. It turns out, in that case, getent reads
> /etc/nsswitch.conf, finds "passwd: files ldap", loads libnss_files.so
> (from glibc), prints the local users, and then tries to load
> libnss_ldap.so from glibc. But since I use the nslcd daemon (nixos option
> users.ldap.daemon.enable), that nss module is provided by the
> nss-pam-ldapd package which is not in getent's LD_LIBRARY_PATH. Therefore,
> no LDAP users are listed by getent.
Which is why, on NixOS, you *have* to use nscd...
--
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
More information about the nix-dev
mailing list