[Nix-dev] getent LD_LIBRARY_PATH

Lluís Batlle i Rossell viric at viric.name
Mon Dec 10 17:06:55 CET 2012


On Mon, Dec 10, 2012 at 04:47:25PM +0100, Eelco Dolstra wrote:
> 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...

Ah yes. In fact, glibc is meant to work 'properly' only with nscd running.
https://github.com/NixOS/nixos/issues/34



More information about the nix-dev mailing list