Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
glibc/nss/nsswitch.conf
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ulrich Drepper
More configurability for secondary group lookup
Together with a previous patch which introduced the initgroups entry in nsswitch.conf this patch allows more customization of the lookups for initgroups/getgrouplist. Nothing changes if the groups entry in nsswitch.conf is used. If the initgroups entry is used instead the code now doesn't automatically continue looking for more entries aftedr a successful lookup. Instead the normal rules are followed which do specify that by default no more service is consulted. This can be overwritten with [SUCCESS=continue] appropriately placed in the line.
20 lines (16 sloc)
332 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/nsswitch.conf | |
# | |
# Example configuration of GNU Name Service Switch functionality. | |
# | |
passwd: db files | |
group: db files | |
initgroups: db [SUCCESS=continue] files | |
shadow: db files | |
gshadow: files | |
hosts: files dns | |
networks: files dns | |
protocols: db files | |
services: db files | |
ethers: db files | |
rpc: db files | |
netgroup: db files |