support alternate backends for the passwd and group dbs
authorJosiah Worcester <josiahw@gmail.com>
Mon, 23 Feb 2015 02:58:10 +0000 (20:58 -0600)
committerRich Felker <dalias@aerifal.cx>
Mon, 23 Feb 2015 06:02:14 +0000 (01:02 -0500)
commit34b423d2077a4c799d2089068d3bec91fb800256
tree7b852fdc3d580b4d5dc12494812a5a5d11328f66
parent0afef1aa24b784c86ae6121ca39e999824086c7c
support alternate backends for the passwd and group dbs

when we fail to find the entry in the commonly accepted files,  we
query a server over a Unix domain socket on /var/run/nscd/socket.
the protocol used here is compatible with glibc's nscd protocol on
most systems (all that use 32-bit numbers for all the protocol fields,
which appears to be everything but Alpha).
src/passwd/getgr_a.c
src/passwd/getpw_a.c
src/passwd/nscd.h [new file with mode: 0644]
src/passwd/nscd_query.c [new file with mode: 0644]