[Nix-dev] getent LD_LIBRARY_PATH
Rickard Nilsson
rickard.nilsson at telia.com
Mon Dec 10 17:27:44 CET 2012
Skickat från min iPhone
10 dec 2012 kl. 16:47 skrev Eelco Dolstra <eelco.dolstra at logicblox.com>:
> 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...
I *do* use nscd, but getent is not querying nscd when it does a passwd listing. As I said it goes directly to nsswitch.conf then. If you run 'getent passwd user' it talks to nscd. You can ser this with strace.
/ Rickard
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
More information about the nix-dev
mailing list