3 ms·
Yep, it's close. But you still depend on the unholy mess that is nsswitch.conf It's still a bit worrying, with manual JSON parsing: https://github.com/systemd/
by cyberax 3y ago
Yep, it's close. But you still depend on the unholy mess that is nsswitch.conf
It's still a bit worrying, with manual JSON parsing: https://github.com/systemd/systemd/blob/79f487038444646f5bce1f5a18d51cda5f20b268/src/nss-resolve/nss-resolve.c#L598 https://github.com/systemd/systemd/blob/79f487038444646f5bce... But at least it's just ~600 lines of fairly straightforward code.
You also can get most of it with nscd.
(Sigh, I wish BUS1 guys pushed their project to completion)