← Back to context

Comment by eqvinox

12 days ago

> configurable user/group/shadow database access, providing getpwnam() et al. functionality by communicating over a Unix domain socket with a daemon

If this were compatible with the nscd protocol, you could use the daemon with unmodified musl (or appropriately configured glibc)… feels a bit like a missed opportunity?

> * The nscd protocol does not support enumeration, so primitives such as getpwent() cannot be implemented over nscd.

  • but the protocol could still be a superset, and musl wouldn't invoke the new parts of the protocol.

    • I'd love to see if there's some fundamental limitations of the protocol that prevent this, but nscd and its protocol are woefully underdocumented, and it's not even stable, technically, since it's part of glibc and the server and client can change their protocol whenever they want.

      Making a new, properly documented protocol, independent from That One Libc You Want To Get Rid Of Anyway, is probably a good idea.

      1 reply →