1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
|
'\" te
.\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH NSSWITCH.CONF 5 "Mar 6, 2017"
.SH NAME
nsswitch.conf \- configuration file for the name service switch
.SH SYNOPSIS
.LP
.nf
\fB/etc/nsswitch.conf\fR
.fi
.SH DESCRIPTION
.LP
The operating system uses a number of databases of information about hosts,
ipnodes, users (\fBpasswd\fR(5), \fBshadow\fR(5), and \fBuser_attr\fR(5)), and
groups. Data for these can come from a variety of sources: hostnames and host
addresses, for example, can be found in \fB/etc/hosts\fR, \fBNIS\fR,
\fBLDAP\fR, \fBDNS\fR or Multicast \fBDNS\fR. Zero or more sources
can be used for each database; the sources and their lookup order are specified
in the \fB/etc/nsswitch.conf\fR file.
.sp
.LP
The following databases use the \fBswitch\fR file:
.sp
.sp
.TS
c c
l l .
Database Used By
\fBaliases\fR \fBsendmail\fR(8)
\fBauth_attr\fR \fBgetauthnam\fR(3SECDB)
\fBautomount\fR \fBautomount\fR(8)
\fBbootparams\fR \fBrpc.bootparamd\fR(8)
\fBethers\fR \fBethers\fR(3SOCKET)
\fBgroup\fR \fBgetgrnam\fR(3C)
\fBhosts\fR T{
\fBgethostbyname\fR(3NSL), \fBgetaddrinfo\fR(3SOCKET). See \fBInteraction with netconfig\fR.
T}
\fBipnodes\fR Same as \fBhosts\fR.
\fBnetgroup\fR \fBinnetgr\fR(3C)
\fBnetmasks\fR \fBifconfig\fR(8)
\fBnetworks\fR \fBgetnetbyname\fR(3SOCKET)
\fBpasswd\fR T{
\fBgetpwnam\fR(3C),
\fBgetspnam\fR(3C),
\fBgetusernam\fR(3SECDB)
T}
\fBprinters\fR T{
\fBlp\fR(1),
\fBlpstat\fR(1),
\fBcancel\fR(1),
\fBlpr\fR(1B),
\fBlpq\fR(1B),
\fBlprm\fR(1B),
\fBin.lpd\fR(8),
\fBlpadmin\fR(8),
\fBlpget\fR(8),
\fBlpset\fR(8)
T}
\fBprof_attr\fR \fBgetprofnam\fR(3SECDB),
\fBgetexecprof\fR(3SECDB)
\fBproject\fR T{
\fBgetprojent\fR(3PROJECT),
\fBgetdefaultproj\fR(3PROJECT),
\fBinproj\fR(3PROJECT),
\fBnewtask\fR(1),
\fBsetproject\fR(3PROJECT)
T}
\fBprotocols\fR \fBgetprotobyname\fR(3SOCKET)
\fBpublickey\fR \fBgetpublickey\fR(3NSL),
\fBsecure_rpc\fR(3NSL)
\fBrpc\fR \fBgetrpcbyname\fR(3NSL)
\fBservices\fR \fBgetservbyname\fR(3SOCKET).
See \fBInteraction with netconfig\fR.
\fBuser_attr\fR \fBgetuserattr\fR(3SECDB)
.TE
.sp
.LP
The following sources can be used:
.sp
.sp
.TS
c c
l l .
Source Uses
\fBfiles\fR T{
\fB/etc/hosts\fR, \fB/etc/passwd\fR, \fB/etc/inet/ipnodes\fR, \fB/etc/shadow\fR, \fB/etc/security/auth_attr\fR, \fB/etc/user_attr\fR
T}
\fBnis\fR \fBNIS\fR(\fBYP\fR)
\fBldap\fR \fBLDAP\fR
\fBad\fR Active Directory
\fBdns\fR T{
Valid only for hosts and ipnodes. Uses the Internet Domain Name Service.
T}
\fBmdns\fR T{
Valid only for hosts and ipnodes. Uses the Multicast Domain Name Service.
T}
\fBcompat\fR T{
Valid only for \fBpasswd\fR and \fBgroup\fR. Implements \fB+\fR and \fB-.\fR See \fBInteraction with +/- syntax\fR.
T}
\fBuser\fR T{
Valid only for printers. Implements support for \fB${HOME}/.printers\fR.
T}
.TE
.sp
.LP
Note that \fB/etc/inet/ipnodes\fR is a symbolic link to \fB/etc/hosts\fR.
.sp
.LP
There is an entry in \fB/etc/nsswitch.conf\fR for each database. Typically
these entries are simple, such as \fBprotocols: files\fR. However, when
multiple sources are specified, it is sometimes necessary to define precisely
the circumstances under which each source is tried. A source can return one
of the following codes:
.sp
.sp
.TS
c c
l l .
Status Meaning
\fBSUCCESS\fR Requested database entry was found.
\fBUNAVAIL\fR T{
Source is not configured on this system or internal failure.
T}
\fBNOTFOUND\fR Source responded "\fBno such entry\fR"
\fBTRYAGAIN\fR T{
Source is busy or not responding, might respond to retries.
T}
.TE
.sp
.LP
For each status code, two actions are possible:
.sp
.sp
.TS
c c
l l .
Action Meaning
\fBcontinue\fR Try the next source in the list.
\fBreturn\fR Return now.
.TE
.sp
.LP
Additionally, for \fBTRYAGAIN\fR only, the following actions are possible:
.sp
.sp
.TS
c c
l l .
Action Meaning
\fBforever\fR Retry the current source forever.
\fIn\fR T{
Retry the current source \fIn\fR more times, where \fIn\fR is an integer between \fB0\fR and \fBMAX_INT\fR (that is, 2.14 billion). After \fIn\fR retries has been exhausted, the \fBTRYAGAIN\fR action transitions to \fBcontinue\fR, until a future request receives a response, at which time \fBTRYAGAIN\fR=\fIn\fR is restored.
T}
.TE
.sp
.LP
The complete syntax of an entry is:
.sp
.in +2
.nf
<entry> ::= <database> ":" [<source> [<criteria>]]*
<criteria> ::= "[" <criterion>+ "]"
<criterion> ::= <status> "=" <action>
<status> ::= "success" | "notfound" | "unavail" | "tryagain"
.fi
.in -2
.sp
.LP
For every status except \fBTRYAGAIN\fR, the action syntax is:
.sp
.in +2
.nf
<action> ::= "return" | "continue"
.fi
.in -2
.sp
.LP
For the \fBTRYAGAIN\fR status, the action syntax is:
.sp
.in +2
.nf
<action> ::= "return" | "continue" | "forever" | <n>
<n> ::= 0...MAX_INT
.fi
.in -2
.sp
.LP
Each entry occupies a single line in the file. Lines that are blank, or that
start with white space, are ignored. Everything on a line following a \fB#\fR
character is also ignored; the \fB#\fR character can begin anywhere in a line,
to be used to begin comments. The <database> and <source> names are
case-sensitive, but <action> and <status> names are case-insensitive.
.sp
.LP
The library functions contain compiled-in default entries that are used if the
appropriate entry in \fBnsswitch.conf\fR is absent or syntactically incorrect.
.sp
.LP
The default criteria for \fBDNS\fR and the \fBNIS\fR server in "DNS-forwarding
mode" is [\fBSUCCESS\fR=return \fBNOTFOUND\fR=continue \fBUNAVAIL\fR=continue
\fBTRYAGAIN\fR=3].
.sp
.LP
The default criteria for all other sources is [\fBSUCCESS\fR=return
\fBNOTFOUND\fR=continue \fBUNAVAIL\fR=continue \fBTRYAGAIN\fR=forever].
.sp
.LP
The default, or explicitly specified, criteria are meaningless following the
last source in an entry; and they are ignored, since the action is always to
return to the caller irrespective of the status code the source returns.
.SS "Interaction with \fBnetconfig\fR"
.LP
In order to ensure that they all return consistent results,
\fBgethostbyname\fR(3NSL), \fBgetaddrinfo\fR(3SOCKET),
\fBgetservbyname\fR(3SOCKET), and \fBnetdir_getbyname\fR(3NSL) functions are
all implemented in terms of the same internal library function. This function
obtains the system-wide source lookup policy for \fBhosts\fR, \fBipnodes\fR,
and \fBservices\fR based on the \fBinet\fR family entries in \fBnetconfig\fR(5)
and uses the switch entries only if the \fBnetconfig\fR entries have a \fB-\fR
(hyphen) in the last column for \fBnametoaddr\fR libraries. See the Notes
section in \fBgethostbyname\fR(3NSL) and \fBgetservbyname\fR(3SOCKET) for
details.
.SS "Interaction with server in DNS-forwarding Mode"
.LP
The \fBNIS\fR (\fBYP\fR) server can be run in DNS-forwarding mode, where it
forwards lookup requests to \fBDNS\fR for host-names and -addresses that do not
exist in its database. In this case, specifying \fBnis\fR as a source for
\fBhosts\fR is sufficient to get \fBDNS\fR lookups; \fBdns\fR need not be
specified explicitly as a source.
.SS "Interaction with Password Aging"
.LP
When password aging is turned on, only a limited set of possible name services
are permitted for the \fBpasswd\fR: database in the \fB/etc/nsswitch.conf\fR
file:
.sp
.ne 2
.na
\fBpasswd:\fR
.ad
.RS 18n
files
.RE
.sp
.ne 2
.na
\fBpasswd:\fR
.ad
.RS 18n
files nis
.RE
.sp
.ne 2
.na
\fBpasswd:\fR
.ad
.RS 18n
files ldap
.RE
.sp
.ne 2
.na
\fBpasswd:\fR
.ad
.RS 18n
compat
.RE
.sp
.ne 2
.na
\fBpasswd_compat:\fR
.ad
.RS 18n
ldap
.RE
.sp
.LP
You can add the \fBad\fR keyword to any of the \fBpasswd\fR configurations
listed above. However, you cannot use the \fBpasswd\fR command to change the
password of an Active Directory (AD) user. If the \fBad\fR keyword is found in
the \fBpasswd\fR entry during a password update operation, it is ignored. To
update the password of an AD user, use the \fBkpasswd\fR(1) command.
.sp
.LP
Any other settings causes the \fBpasswd\fR(1) command to fail when it attempts
to change the password after expiration and prevents the user from logging in.
These are the \fBonly\fR permitted settings when password aging has been turned
on. Otherwise, you can work around incorrect \fBpasswd\fR: lines by using the
\fB-r repository\fR argument to the \fBpasswd\fR(1) command and using \fBpasswd
-r repository\fR to override the \fBnsswitch.conf\fR settings and specify in
which name service you want to modify your password.
.SS "Interaction with +/- syntax"
.LP
Releases prior to SunOS 5.0 did not have the name service switch but did allow
the user some policy control. In \fB/etc/passwd\fR one could have entries of
the form \fI+user\fR (include the specified user from \fBNIS\fR passwd.byname),
\fI-user\fR (exclude the specified user) and \fB+\fR (include everything,
except excluded users, from \fBNIS\fR passwd.byname). The desired behavior was
often \fBeverything in the file followed by everything in NIS\fR, expressed by
a solitary \fB+\fR at the end of \fB/etc/passwd\fR. The switch provides an
alternative for this case (\fBpasswd: files nis\fR) that does not require
\fB+\fR entries in \fB/etc/passwd\fR and \fB/etc/shadow\fR (the latter is a new
addition to SunOS 5.0, see \fBshadow\fR(5)).
.sp
.LP
If this is not sufficient, the \fBNIS/YP\fR compatibility source provides full
+/- semantics. It reads \fB/etc/passwd\fR for \fBgetpwnam\fR(3C) functions and
\fB/etc/shadow\fR for \fBgetspnam\fR(3C) functions and, if it finds +/-
entries, invokes an appropriate source. By default, the source is \fBnis\fR,
but this can be overridden by specifying \fBldap\fR as the
source for the pseudo-database \fBpasswd_compat\fR.
.sp
.LP
Note that in compat mode, for every \fB/etc/passwd\fR entry, there must be a
corresponding entry in the \fB/etc/shadow\fR file.
.sp
.LP
The NIS/YP compatibility source also provides full +/- semantics for
\fBgroup\fR; the relevant pseudo-database is \fBgroup_compat\fR.
.SS "Useful Configurations"
.LP
The compiled-in default entries for all databases use \fBNIS (YP)\fR as the
enterprise level name service and are identical to those in the default
configuration of this file:
.sp
.ne 2
.na
\fBpasswd:\fR
.ad
.RS 15n
files nis
.RE
.sp
.ne 2
.na
\fBgroup:\fR
.ad
.RS 15n
files nis
.RE
.sp
.ne 2
.na
\fBhosts:\fR
.ad
.RS 15n
nis [NOTFOUND=return] files
.RE
.sp
.ne 2
.na
\fBipnodes:\fR
.ad
.RS 15n
nis [NOTFOUND=return] files
.RE
.sp
.ne 2
.na
\fBnetworks:\fR
.ad
.RS 15n
nis [NOTFOUND=return] files
.RE
.sp
.ne 2
.na
\fBprotocols:\fR
.ad
.RS 15n
nis [NOTFOUND=return] files
.RE
.sp
.ne 2
.na
\fBrpc:\fR
.ad
.RS 15n
nis [NOTFOUND=return] files
.RE
.sp
.ne 2
.na
\fBethers:\fR
.ad
.RS 15n
nis [NOTFOUND=return] files
.RE
.sp
.ne 2
.na
\fBnetmasks:\fR
.ad
.RS 15n
nis [NOTFOUND=return] files
.RE
.sp
.ne 2
.na
\fBbootparams:\fR
.ad
.RS 15n
nis [NOTFOUND=return] files
.RE
.sp
.ne 2
.na
\fBpublickey:\fR
.ad
.RS 15n
nis [NOTFOUND=return] files
.RE
.sp
.ne 2
.na
\fBnetgroup:\fR
.ad
.RS 15n
nis
.RE
.sp
.ne 2
.na
\fBautomount:\fR
.ad
.RS 15n
files nis
.RE
.sp
.ne 2
.na
\fBaliases:\fR
.ad
.RS 15n
files nis
.RE
.sp
.ne 2
.na
\fBservices:\fR
.ad
.RS 15n
files nis
.RE
.sp
.ne 2
.na
\fBprinters:\fR
.ad
.RS 15n
user files nis
.RE
.sp
.ne 2
.na
\fBauth_attr\fR
.ad
.RS 15n
files nis
.RE
.sp
.ne 2
.na
\fBprof_attr\fR
.ad
.RS 15n
files nis
.RE
.sp
.ne 2
.na
\fBproject\fR
.ad
.RS 15n
files nis
.RE
.sp
.LP
Note that the \fBfiles\fR source for the \fBipnodes\fR and \fBhosts\fR
databases is identical, as \fB/etc/inet/ipnodes\fR is a symbolic link to
\fB/etc/hosts\fR. Because other sources for the \fBipnodes\fR and \fBhosts\fR
databases are different, do not remove the \fBipnodes\fR line from the
\fB/etc/nsswitch.conf\fR file.
.sp
.LP
The policy \fBnis [NOTFOUND=return] files\fR implies: if \fBnis\fR is
\fBUNAVAIL\fR, continue on to \fBfiles\fR, and if \fBnis\fR returns
\fBNOTFOUND\fR, return to the caller. In other words, treat \fBnis\fR as the
authoritative source of information and try \fBfiles\fR only if \fBnis\fR is
down. This, and other policies listed in the default configuration above, are
identical to the hard-wired policies in SunOS releases prior to 5.0.
.sp
.LP
If compatibility with the +/- syntax for \fBpasswd\fR and \fBgroup\fR is
required, simply modify the entries for \fBpasswd\fR and \fBgroup\fR to:
.sp
.ne 2
.na
\fBpasswd:\fR
.ad
.RS 11n
compat
.RE
.sp
.ne 2
.na
\fBgroup:\fR
.ad
.RS 11n
compat
.RE
.sp
.LP
If \fBLDAP\fR is the enterprise level name service, the default configuration
should be modified to use \fBldap\fR instead of \fBnis\fR for every database on
client machines. The file \fB/etc/nsswitch.ldap\fR contains a sample
configuration that can be copied to \fB/etc/nsswitch.conf\fR to set this
policy.
.sp
.LP
When using Active Directory, \fBdns\fR is required to perform hosts resolution.
.sp
.LP
If the use of +/- syntax is desired in conjunction with \fBLDAP\fR, use the
following four entries:
.sp
.ne 2
.na
\fBpasswd:\fR
.ad
.RS 18n
compat
.RE
.sp
.ne 2
.na
\fBpasswd_compat:\fR
.ad
.RS 18n
ldap
.RE
.sp
.ne 2
.na
\fBgroup:\fR
.ad
.RS 18n
compat
.RE
.sp
.ne 2
.na
\fBgroup_compat:\fR
.ad
.RS 18n
ldap
.RE
.sp
.LP
In order to get information from the Internet Domain Name Service for hosts
that are not listed in the enterprise level name service, such as
\fBLDAP\fR, use the following configuration and set up the
\fB/etc/resolv.conf\fR file (see \fBresolv.conf\fR(5) for more details):
.sp
.ne 2
.na
\fBhosts:\fR
.ad
.RS 10n
ldap dns [NOTFOUND=return] files
.RE
.SS "Enumeration - \fBgetXXXent()\fR"
.LP
Many of the databases have enumeration functions: \fBpasswd\fR has
\fBgetpwent()\fR, \fBhosts\fR has \fBgethostent()\fR, and so on. These were
reasonable when the only source was \fBfiles\fR but often make little sense for
hierarchically structured sources that contain large numbers of entries, much
less for multiple sources. The interfaces are still provided and the
implementations strive to provide reasonable results, but the data returned can
be incomplete (enumeration for \fBhosts\fR is simply not supported by the
\fBdns\fR source), inconsistent (if multiple sources are used), formatted in an
unexpected fashion,
or very expensive (enumerating a \fBpasswd\fR database of 5,000 users is
probably a bad idea). Furthermore, multiple threads in the same process using
the same reentrant enumeration function (\fBgetXXXent_r()\fR are supported
beginning with SunOS 5.3) share the same enumeration position; if they
interleave calls, they enumerate disjoint subsets of the same database.
.sp
.LP
In general, the use of the enumeration functions is deprecated. In the case of
\fBpasswd\fR, \fBshadow\fR, and \fBgroup\fR, it might sometimes be appropriate
to use \fBfgetgrent()\fR, \fBfgetpwent()\fR, and \fBfgetspent()\fR (see
\fBgetgrnam\fR(3C), \fBgetpwnam\fR(3C), and \fBgetspnam\fR(3C), respectively),
which use only the \fBfiles\fR source.
.SH FILES
.LP
A source named SSS is implemented by a shared object named \fBnss_SSS.so.1\fR
that resides in \fB/usr/lib\fR.
.sp
.ne 2
.na
\fB\fB/etc/nsswitch.conf\fR\fR
.ad
.RS 29n
Configuration file.
.RE
.sp
.ne 2
.na
\fB\fB/usr/lib/nss_compat.so.1\fR\fR
.ad
.RS 29n
Implements \fBcompat\fR source.
.RE
.sp
.ne 2
.na
\fB\fB/usr/lib/nss_dns.so.1\fR\fR
.ad
.RS 29n
Implements \fBdns\fR source.
.RE
.sp
.ne 2
.na
\fB\fB/usr/lib/nss_files.so.1\fR\fR
.ad
.RS 29n
Implements \fBfiles\fR source.
.RE
.sp
.ne 2
.na
\fB\fB/usr/lib/nss_mdns.so.1\fR\fR
.ad
.RS 29n
Implements \fBmdns\fR source.
.RE
.sp
.ne 2
.na
\fB\fB/usr/lib/nss_nis.so.1\fR\fR
.ad
.RS 29n
Implements \fBnis\fR source.
.RE
.sp
.ne 2
.na
\fB\fB/usr/lib/nss_ldap.so.1\fR\fR
.ad
.RS 29n
Implements \fBldap\fR source.
.RE
.sp
.ne 2
.na
\fB\fB/usr/lib/nss_ad.so.1\fR\fR
.ad
.RS 29n
Implements ad source.
.RE
.sp
.ne 2
.na
\fB\fB/usr/lib/nss_user.so.1\fR\fR
.ad
.RS 29n
Implements \fBuser\fR source.
.RE
.sp
.ne 2
.na
\fB\fB/etc/netconfig\fR\fR
.ad
.RS 29n
Configuration file for \fBnetdir\fR(3NSL) functions that redirects
hosts/devices policy to the switch.
.RE
.sp
.ne 2
.na
\fB\fB/etc/nsswitch.files\fR\fR
.ad
.RS 29n
Sample configuration file that uses \fBfiles\fR only.
.RE
.sp
.ne 2
.na
\fB\fB/etc/nsswitch.nis\fR\fR
.ad
.RS 29n
Sample configuration file that uses \fBfiles\fR and \fBnis\fR.
.RE
.sp
.ne 2
.na
\fB\fB/etc/nsswitch.ldap\fR\fR
.ad
.RS 29n
Sample configuration file that uses \fBfiles\fR and \fBldap\fR.
.RE
.sp
.ne 2
.na
\fB\fB/etc/nsswitch.ad\fR\fR
.ad
.RS 29n
Sample configuration file that uses \fBfiles\fR and \fBad\fR.
.RE
.sp
.ne 2
.na
\fB\fB/etc/nsswitch.dns\fR\fR
.ad
.RS 29n
Sample configuration file that uses \fBfiles\fR, \fBdns\fR and \fBmdns\fR
(\fBdns\fR and \fBmdns\fR only for hosts).
.RE
.SH SEE ALSO
.LP
.BR kpasswd (1),
.BR ldap (1),
.BR newtask (1),
.BR passwd (1),
.BR getgrnam (3C),
.BR getnetgrent (3C),
.BR getpwnam (3C),
.BR getspnam (3C),
.BR gethostbyname (3NSL),
.BR getpublickey (3NSL),
.BR getrpcbyname (3NSL),
.BR netdir (3NSL),
.BR secure_rpc (3NSL),
.BR getdefaultproj (3PROJECT),
.BR getprojent (3PROJECT),
.BR inproj (3PROJECT),
.BR setproject (3PROJECT),
.BR getauthnam (3SECDB),
.BR getexecprof (3SECDB),
.BR getprofnam (3SECDB),
.BR getuserattr (3SECDB),
.BR getusernam (3SECDB),
.BR ethers (3SOCKET),
.BR getaddrinfo (3SOCKET),
.BR getnetbyname (3SOCKET),
.BR getprotobyname (3SOCKET),
.BR getservbyname (3SOCKET),
.BR auth_attr (5),
.BR hosts (5),
.BR netconfig (5),
.BR project (5),
.BR resolv.conf (5),
.BR user_attr (5),
.BR ypfiles (5),
.BR ad (7),
.BR automount (8),
.BR ifconfig (8),
.BR mdnsd (8),
.BR rpc.bootparamd (8),
.BR sendmail (8)
.SH NOTES
.LP
Within each process that uses \fBnsswitch.conf\fR, the entire file is read only
once; if the file is later changed, the process continues using the old
configuration.
.sp
.LP
Do not use the \fBldap\fR and \fBad\fR keywords together when the Solaris LDAP
client uses schema mapping to talk to Active Directory.
.sp
.LP
Misspelled names of sources and databases are treated as legitimate names of
(most likely nonexistent) sources and databases.
.sp
.LP
The following functions do \fBnot\fR use the switch: \fBfgetgrent\fR(3C),
\fBfgetprojent\fR(3PROJECT), \fBfgetpwent\fR(3C), \fBfgetspent\fR(3C),
\fBgetpw\fR(3C), \fBputpwent\fR(3C), \fBshadow\fR(5).
|