Comment by cryptonector
12 days ago
> - musl only connects to nscd when it cannot find an answer in its files backend
ISTM that this should be fixed in Musl, that it should only check `files` first when it comes first in `/etc/nsswitch.conf`.
Also, if IPC to `nscd` were fast enough, then maybe nss should just always call `nscd`. Maybe this should be configurable in `/etc/nsswitch.conf`, then nss should only ever look in `files` when `nscd` is unreachable.
TFA essentially is this, but not in Musl. It's a fine workaround, but it ought to be implemented in Musl.
> - The nscd protocol does not support enumeration, so primitives such as getpwent() cannot be implemented over nscd.
Backend-agnostic enumeration isn't really useful. If you need to enumerate then you need code to talk to the specific backend(s) that you care about (e.g., files, LDAP, etc.).
No comments yet
Contribute on Hacker News ↗