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
|
'\" te
.\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.
.\" Copyright 1989 AT&T
.\" 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 YPFILES 4 "Nov 24, 2003"
.SH NAME
ypfiles \- Network Information Service Version 2, formerly knows as YP
.SH DESCRIPTION
.sp
.LP
The NIS network information service uses a distributed, replicated database of
\fBdbm\fR files , in ASCII form, that are contained in the \fB/var/yp\fR
directory hierarchy on each NIS server.
.sp
.LP
A \fBdbm\fR database served by the NIS server is called a NIS \fImap\fR. A NIS
\fIdomain\fR is a subdirectory of \fB/var/yp\fR that contains a set of NIS maps
on each NIS server.
.sp
.LP
Standard nicknames are defined in the file \fB/var/yp/nicknames\fR. These names
can be used in place of the full map name in the \fBypmatch\fR and \fBypcat\fR
commands. Use the command \fBypwhich\fR \fB-x\fR to display the current set of
nicknames. Use the command \fBypwhich\fR \fB-m\fR to display all the available
maps. Each line of the nickname file contains two fields separated by white
space. The first field is the nickname, and the second field is the name of the
map that it expands to. The nickname cannot contain a ".".
.SS "NIS to LDAP (N2L)"
.sp
.LP
If the \fB/var/yp/NISLDAPmapping\fR configuration file is present, the NIS
server operates in NIS to LDAP (N2L) mode. In this mode, NIS maps are stored in
a new set of DBM files, prepended by the \fBLDAP_\fR prefix, at
\fB/var/yp/\fIdomainename\fR\fR. These files are used as a cache backed by
information from an LDAP server. Additional DBM files are created in the same
directory to hold the cache's TTL values.
.sp
.LP
N2L mode enables NIS clients to be supported in an LDAP environment.
.sp
.LP
In N2L mode, the old style DBM files, NIS source files, and the
\fBypmake\fR(1M) utility have to role. They are retained to enable easy
conversion back to the traditional mode, if required.
.SS "Converting from N2L to Traditional NIS"
.sp
.LP
When NIS is operating in N2L mode, it uses a new set of NIS maps with an
\fBLDAP_\fR prefix, based on the contents of the LDAP DIT. The NIS source files
are unused and become out of date. If you wish to convert back to the
traditional NIS mode, the N2L configuration file should be deleted. The system
will then return to using the standard map files. Optionally, the N2L mode map
files, \fB/var/yp/*/LDAP_*\fR can also be deleted.
.sp
.LP
If you want to run the system in traditional mode with information based on the
DIT, then the NIS source files must be regenerated based on the N2L maps. To
regenerate the NIS source files based on the N2L maps, run \fBypmap2src\fR(1M).
.SS "NIS+"
.sp
.LP
NIS+ also provides a NIS service when it runs in YP-compatibility mode. See
\fBNIS+\fR(1) and \fBrpc.nisd\fR(1M). NIS+, in any mode, cannot be run on the
same system as \fBypserv\fR, whether \fBypserv\fR is in traditional or N2L
mode.
.SH FILES
.sp
.ne 2
.na
\fB\fB/var/yp\fR\fR
.ad
.sp .6
.RS 4n
Directory containing NIS configuration files.
.RE
.sp
.ne 2
.na
\fB\fB/var/yp/binding\fR\fR
.ad
.sp .6
.RS 4n
Stores the information required to bind the NIS client to the NIS server.
.RE
.sp
.ne 2
.na
\fB\fB/var/yp/binding/\fIypdomain\fR/ypservers\fR\fR
.ad
.sp .6
.RS 4n
Contains the servers to which the NIS client is allowed to bind.
.RE
.sp
.ne 2
.na
\fB\fB/var/yp/Makefile\fR\fR
.ad
.sp .6
.RS 4n
Builds the NIS \fBndbm\fR databases.
.RE
.sp
.ne 2
.na
\fB\fB/var/yp/nicknames\fR\fR
.ad
.sp .6
.RS 4n
Nicknames file.
.RE
.sp
.ne 2
.na
\fB\fB/var/yp/securenets\fR\fR
.ad
.sp .6
.RS 4n
Defines the hosts and networks that are granted access to information in the
served domain. This file is read at startup time by \fBypserv\fR and
\fBypxfrd\fR.
.RE
.sp
.ne 2
.na
\fB\fB/var/yp/\fIypdomain\fR\fR\fR
.ad
.sp .6
.RS 4n
Directory containing \fBndbm\fR databases.
.RE
.sp
.ne 2
.na
\fB\fB/var/yp/NISLDAPmapping\fR\fR
.ad
.sp .6
.RS 4n
NIS to LDAP configuration file
.RE
.sp
.ne 2
.na
\fB\fB/var/yp/*/LDAP_*\fR\fR
.ad
.sp .6
.RS 4n
NIS to LDAP mode map files
.RE
.SH SEE ALSO
.sp
.LP
\fBldap\fR(1), \fBNIS+\fR(1), \fBmakedbm\fR(1M), \fBnisaddent\fR(1M),
\fBnissetup\fR(1M), \fBrpc.nisd\fR(1M), \fBypbind\fR(1M), \fBypinit\fR(1M),
\fBypmake\fR(1M), \fBypmap2src\fR(1M), \fBypserv\fR(1M), \fBypxfrd\fR(1M),
\fBndbm\fR(3C), \fBypclnt\fR(3NSL)
.SH NOTES
.sp
.LP
The NIS+ server, \fBrpc.nisd,\fR when run in "YP-compatibility mode", can
support NIS clients only for the standard NIS maps listed below, provided that
it has been set up to serve the corresponding NIS+ tables using
\fBnissetup\fR(1M) and \fBnisaddent\fR(1M). The NIS+ server should serve the
directory with the same name (case sensitive) as the domainname of the NIS
client. NIS+ servers use secure RPC to verify client credentials but the NIS
clients do not authenticate their requests using secure RPC. Therefore, NIS
clients can look up the information stored by the NIS+ server only if the
information has "read" access for an unauthenticated client, that is, one with
\fBnobody\fR NIS+ credentials.
.sp
.ne 2
.na
\fB\fBNIS maps\fR\fR
.ad
.RS 26n
\fBNIS+ tables\fR
.RE
.sp
.ne 2
.na
\fB\fBpasswd.byname\fR\fR
.ad
.RS 26n
\fBpasswd.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBpasswd.byuid\fR\fR
.ad
.RS 26n
\fBpasswd.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBgroup.byname\fR\fR
.ad
.RS 26n
\fBgroup.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBgroup.bygid\fR\fR
.ad
.RS 26n
\fBgroup.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBpublickey.byname\fR\fR
.ad
.RS 26n
\fBcred.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBhosts.byaddr\fR\fR
.ad
.RS 26n
\fBhosts.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBhosts.byname\fR\fR
.ad
.RS 26n
\fBhosts.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBmail.byaddr\fR\fR
.ad
.RS 26n
\fBmail_aliases.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBmail.aliases\fR\fR
.ad
.RS 26n
\fBmail_aliases.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBservices.byname\fR\fR
.ad
.RS 26n
\fBservices.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBservices.byservicename\fR\fR
.ad
.RS 26n
\fBservices.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBrpc.bynumber\fR\fR
.ad
.RS 26n
\fBrpc.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBrpc.byname\fR\fR
.ad
.RS 26n
\fBrpc.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBprotocols.bynumber\fR\fR
.ad
.RS 26n
\fBprotocols.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBprotocols.byname\fR\fR
.ad
.RS 26n
\fBprotocols.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBnetworks.byaddr\fR\fR
.ad
.RS 26n
\fBnetworks.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBnetworks.byname\fR\fR
.ad
.RS 26n
\fBnetworks.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBnetmasks.byaddr\fR\fR
.ad
.RS 26n
\fBnetmasks.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBethers.byname\fR\fR
.ad
.RS 26n
\fBethers.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBethers.byaddr\fR\fR
.ad
.RS 26n
\fBethers.byname\fR
.RE
.sp
.ne 2
.na
\fB\fBbootparams\fR\fR
.ad
.RS 26n
\fBbootparams\fR
.RE
.sp
.ne 2
.na
\fB\fBauto.master\fR\fR
.ad
.RS 26n
\fBauto_master.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBauto.home\fR\fR
.ad
.RS 26n
\fBauto_home.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBauto.direct\fR\fR
.ad
.RS 26n
\fBauto_direct.org_dir\fR
.RE
.sp
.ne 2
.na
\fB\fBauto.src\fR\fR
.ad
.RS 26n
\fBauto_src.org_dir\fR
.RE
|