mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-21 16:32:25 +01:00
714ac00292
This support appears to have been documented in nsswitch.conf(5) for some time. The implementation adds two NSS netgroup providers to libc. The default, compat, provides the behaviour documented in netgroup(5), so this change does not make any user-visible behaviour changes. A files provider is also implemented. innetgr(3) is implemented as an optional NSS method so that providers such as NIS which are able to implement efficient reverse lookup can do so. A fallback implementation is used otherwise. getnetgrent_r(3) is added for convenience and to provide compatibility with glibc and Solaris. With a small patch to net/nss_ldap, it's possible to specify an ldap netgroup provider, allowing one to query nisNetgroupTriple entries. Sponsored by: EMC / Isilon Storage Division
17 lines
272 B
Plaintext
17 lines
272 B
Plaintext
#
|
|
# nsswitch.conf(5) - name service switch configuration file
|
|
# $FreeBSD$
|
|
#
|
|
group: compat
|
|
group_compat: nis
|
|
hosts: files dns
|
|
netgroup: compat
|
|
networks: files
|
|
passwd: compat
|
|
passwd_compat: nis
|
|
shells: files
|
|
services: compat
|
|
services_compat: nis
|
|
protocols: files
|
|
rpc: files
|