1 '\" te 2 .\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved. 3 .\" Copyright 1989 AT&T 4 .\" 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. 5 .\" 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. 6 .\" 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] 7 .TH YPFILES 4 "Feb 25, 2017" 8 .SH NAME 9 ypfiles \- Network Information Service Version 2, formerly known as YP 10 .SH DESCRIPTION 11 .LP 12 The NIS network information service uses a distributed, replicated database of 13 \fBdbm\fR files , in ASCII form, that are contained in the \fB/var/yp\fR 14 directory hierarchy on each NIS server. 15 .sp 16 .LP 17 A \fBdbm\fR database served by the NIS server is called a NIS \fImap\fR. A NIS 18 \fIdomain\fR is a subdirectory of \fB/var/yp\fR that contains a set of NIS maps 19 on each NIS server. 20 .sp 21 .LP 22 Standard nicknames are defined in the file \fB/var/yp/nicknames\fR. These names 23 can be used in place of the full map name in the \fBypmatch\fR and \fBypcat\fR 24 commands. Use the command \fBypwhich\fR \fB-x\fR to display the current set of 25 nicknames. Use the command \fBypwhich\fR \fB-m\fR to display all the available 26 maps. Each line of the nickname file contains two fields separated by white 27 space. The first field is the nickname, and the second field is the name of the 28 map that it expands to. The nickname cannot contain a ".". 29 .SS "NIS to LDAP (N2L)" 30 .LP 31 If the \fB/var/yp/NISLDAPmapping\fR configuration file is present, the NIS 32 server operates in NIS to LDAP (N2L) mode. In this mode, NIS maps are stored in 33 a new set of DBM files, prepended by the \fBLDAP_\fR prefix, at 34 \fB/var/yp/\fIdomainename\fR\fR. These files are used as a cache backed by 35 information from an LDAP server. Additional DBM files are created in the same 36 directory to hold the cache's TTL values. 37 .sp 38 .LP 39 N2L mode enables NIS clients to be supported in an LDAP environment. 40 .sp 41 .LP 42 In N2L mode, the old style DBM files, NIS source files, and the 43 \fBypmake\fR(1M) utility have to role. They are retained to enable easy 44 conversion back to the traditional mode, if required. 45 .SS "Converting from N2L to Traditional NIS" 46 .LP 47 When NIS is operating in N2L mode, it uses a new set of NIS maps with an 48 \fBLDAP_\fR prefix, based on the contents of the LDAP DIT. The NIS source files 49 are unused and become out of date. If you wish to convert back to the 50 traditional NIS mode, the N2L configuration file should be deleted. The system 51 will then return to using the standard map files. Optionally, the N2L mode map 52 files, \fB/var/yp/*/LDAP_*\fR can also be deleted. 53 .sp 54 .LP 55 If you want to run the system in traditional mode with information based on the 56 DIT, then the NIS source files must be regenerated based on the N2L maps. To 57 regenerate the NIS source files based on the N2L maps, run \fBypmap2src\fR(1M). 58 .SH FILES 59 .ne 2 60 .na 61 \fB\fB/var/yp\fR\fR 62 .ad 63 .sp .6 64 .RS 4n 65 Directory containing NIS configuration files. 66 .RE 67 68 .sp 69 .ne 2 70 .na 71 \fB\fB/var/yp/binding\fR\fR 72 .ad 73 .sp .6 74 .RS 4n 75 Stores the information required to bind the NIS client to the NIS server. 76 .RE 77 78 .sp 79 .ne 2 80 .na 81 \fB\fB/var/yp/binding/\fIypdomain\fR/ypservers\fR\fR 82 .ad 83 .sp .6 84 .RS 4n 85 Contains the servers to which the NIS client is allowed to bind. 86 .RE 87 88 .sp 89 .ne 2 90 .na 91 \fB\fB/var/yp/Makefile\fR\fR 92 .ad 93 .sp .6 94 .RS 4n 95 Builds the NIS \fBndbm\fR databases. 96 .RE 97 98 .sp 99 .ne 2 100 .na 101 \fB\fB/var/yp/nicknames\fR\fR 102 .ad 103 .sp .6 104 .RS 4n 105 Nicknames file. 106 .RE 107 108 .sp 109 .ne 2 110 .na 111 \fB\fB/var/yp/securenets\fR\fR 112 .ad 113 .sp .6 114 .RS 4n 115 Defines the hosts and networks that are granted access to information in the 116 served domain. This file is read at startup time by \fBypserv\fR and 117 \fBypxfrd\fR. 118 .RE 119 120 .sp 121 .ne 2 122 .na 123 \fB\fB/var/yp/\fIypdomain\fR\fR\fR 124 .ad 125 .sp .6 126 .RS 4n 127 Directory containing \fBndbm\fR databases. 128 .RE 129 130 .sp 131 .ne 2 132 .na 133 \fB\fB/var/yp/NISLDAPmapping\fR\fR 134 .ad 135 .sp .6 136 .RS 4n 137 NIS to LDAP configuration file 138 .RE 139 140 .sp 141 .ne 2 142 .na 143 \fB\fB/var/yp/*/LDAP_*\fR\fR 144 .ad 145 .sp .6 146 .RS 4n 147 NIS to LDAP mode map files 148 .RE 149 150 .SH SEE ALSO 151 .LP 152 \fBldap\fR(1), \fBmakedbm\fR(1M), \fBypbind\fR(1M), \fBypinit\fR(1M), 153 \fBypmake\fR(1M), \fBypmap2src\fR(1M), \fBypserv\fR(1M), \fBypxfrd\fR(1M), 154 \fBndbm\fR(3C), \fBypclnt\fR(3NSL)