1 .\" Copyright (C) 2006 Red Hat, Inc. All rights reserved.
2 .\" Author: Ulrich Drepper <drepper@redhat.com>
4 .\" SPDX-License-Identifier: GPL-2.0-only
6 .TH NSS 5 2020-06-09 "Linux" "Linux Programmer's Manual"
8 nss \- Name Service Switch configuration file
10 Each call to a function which retrieves data from a system database
11 like the password or group database is handled by the Name Service
12 Switch implementation in the GNU C library.
14 provided are implemented by independent modules, each of which
15 naturally varies widely from the other.
17 The default implementations coming with the GNU C library are by
18 default conservative and do not use unsafe data.
19 This might be very costly in some situations, especially when the databases
21 Some modules allow the system administrator to request
22 taking shortcuts if these are known to be safe.
23 It is then the system administrator's responsibility to ensure the assumption
26 There are other modules where the implementation changed over time.
27 If an implementation used to sacrifice speed for memory consumption,
28 it might create problems if the preference is switched.
32 file contains a number of variable assignments.
33 Each variable controls the behavior of one or more
35 White spaces are ignored.
36 Lines beginning with \(aq#\(aq
37 are treated as comments.
39 The variables currently recognized are:
41 \fBNETID_AUTHORITATIVE =\fR \fITRUE\fR|\fIFALSE\fR
42 If set to TRUE, the NIS backend for the
44 function will accept the information
47 NIS map as authoritative.
48 This can speed up the function significantly if the
53 map is used \fBas is\fR.
54 The system administrator has to make sure it is correctly generated.
56 \fBSERVICES_AUTHORITATIVE =\fR \fITRUE\fR|\fIFALSE\fR
57 If set to TRUE, the NIS backend for the
60 .BR getservbyname_r (3)
61 functions will assume that the
62 .I services.byservicename
63 NIS map exists and is authoritative, particularly
64 that it contains both keys with /proto and without /proto for both
65 primary service names and service aliases.
66 The system administrator has to make sure it is correctly generated.
68 \fBSETENT_BATCH_READ =\fR \fITRUE\fR|\fIFALSE\fR
69 If set to TRUE, the NIS backend for the
73 functions will read the entire database at once and then
74 hand out the requests one by one from memory with every corresponding
83 call might result in a network communication with the server to get
86 \fI/etc/default/nss\fR
88 The default configuration corresponds to the following configuration file:
92 NETID_AUTHORITATIVE=FALSE
93 SERVICES_AUTHORITATIVE=FALSE
94 SETENT_BATCH_READ=FALSE
98 .\" Ulrich Drepper <drepper@redhat.com>