1 '\" te 2 .\" Copyright (C) 2003, Sun Microsystems, Inc. All Rights Reserved 3 .\" 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. 4 .\" 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. 5 .\" 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] 6 .TH YPMAP2SRC 1M "Apr 10, 2003" 7 .SH NAME 8 ypmap2src \- convert NIS maps to NIS source files 9 .SH SYNOPSIS 10 .LP 11 .nf 12 \fB/usr/lib/netsvc/yp/ypmap2src\fR [\fB-t\fR] 13 [ [\fB-c\fR \fIcustom-map-name\fR]]... [\fB-d\fR \fIdomain\fR] \fB-o\fR \fIoutput-directory\fR 14 [ [ \fIsource-file\fR]]... 15 .fi 16 17 .SH DESCRIPTION 18 .LP 19 Use the \fBypmap2src\fR utility to convert standard NIS maps to approximations 20 of the equivalent NIS source files. This utility functions like the reverse of 21 \fBypmake\fR(1M). 22 .sp 23 .LP 24 The primary use for \fBypmap2src\fR is to convert from a NIS server that uses 25 the NIS to LDAP(N2L) transition mechanism, which does not use NIS source files, 26 to traditional NIS, where source files are required. The \fBypmap2src\fR 27 utility is also used by NIS administrators who wish to discover the contents of 28 NIS maps for which the sources are not available. 29 .sp 30 .LP 31 Generally, this operation is not necessary. More often, administrators will 32 switch from traditional NIS to N2L in anticipation of the eventual transition 33 to LDAP naming. When this switch is made, authoritative information is moved 34 into the LDAP DIT, and the NIS sources have no further role. N2L supports NIS 35 clients until such time as they can be converted to LDAP, and the NIS service 36 suspended. 37 .sp 38 .LP 39 The \fBypmap2src\fR utility does not guarantee that the files that are 40 generated are identical to the original NIS source files. Some information 41 might have been thrown away by \fBypmake\fR and cannot be recovered. N2L also 42 might have updated the maps to reflect changes made by LDAP clients. It is 43 essential that the sources generated are checked to confirm no problems have 44 occurred. 45 .sp 46 .LP 47 Per entry comment fields, from existing source files, are not merged into 48 source files generated by \fBypmap2src\fR. If a user wishes N2L to maintain 49 comment information, then the \fBNISLDAPmapping\fR configuration file should be 50 modified so that the comment fields are mapped into LDAP. This will ensure 51 that the comments are visible to native LDAP clients and present in the N2L map 52 files. 53 .sp 54 .LP 55 When \fBypmap2src\fR is run, it will take up-to-date comments from the map file 56 and insert them into the NIS source file generated. 57 .SS "Handling Custom Maps" 58 .LP 59 \fBypmap2src\fR only knows about the standard NIS maps and standard source to 60 map conversion. If an advanced user has changed these, that is, the user has 61 modified the NIS makefile, the equivalent changes must also be made to the 62 \fBypmap2src\fR script. 63 .SH OPTIONS 64 .LP 65 \fBypmap2src\fR supports the following options: 66 .sp 67 .ne 2 68 .na 69 \fB\fB-c\fR\fR 70 .ad 71 .RS 18n 72 Specifies that \fIcustom-map-name\fR should be converted to a source 73 file by running \fBmakedbm\fR \fB-u\fR on it. This is a short cut so that 74 simple custom maps can be handled without editing \fBypmap2src\fR. 75 .RE 76 77 .sp 78 .ne 2 79 .na 80 \fB\fB-d\fR \fIdomain-name\fR\fR 81 .ad 82 .RS 18n 83 Specifies the domain to convert. The \fIdomain-name\fR can be a fully 84 qualified file path, such as \fB/var/yp/a.b.c\fR, or just a domain name, 85 a.b.c\fB\fR. In the latter case, \fBypmaptosrc\fR looks in \fB/var/yp\fR for 86 the domain directory. 87 .RE 88 89 .sp 90 .ne 2 91 .na 92 \fB\fB-o\fR \fIdest\fR\fR 93 .ad 94 .RS 18n 95 Specifies the destination directory for the converted files. A directory other 96 than \fB/etc\fR should be specified. The maps generated are copied to the 97 correct location, \fB/etc\fR, \fB/etc/security\fR or other source directory, as 98 appropriate. 99 .RE 100 101 .sp 102 .ne 2 103 .na 104 \fB\fB-t\fR\fR 105 .ad 106 .RS 18n 107 Specifies that traditional NIS maps, without N2L's \fBLDAP_\fR prefix, should 108 be converted. By default, maps with the \fBLDAP_\fR prefix are converted. 109 .RE 110 111 .SH OPERANDS 112 .LP 113 \fBypmap2src\fR supports the following operands: 114 .sp 115 .ne 2 116 .na 117 \fB\fIsource-file\fR\fR 118 .ad 119 .RS 15n 120 Lists the standard source files to convert. If this option is not given, then 121 all the standard source files, plus any custom files specified by the \fB-c\fR 122 option, are converted. 123 .RE 124 125 .SH ATTRIBUTES 126 .LP 127 See \fBattributes\fR(5) for descriptions of the following attributes: 128 .sp 129 130 .sp 131 .TS 132 box; 133 c | c 134 l | l . 135 ATTRIBUTE TYPE ATTRIBUTE VALUE 136 _ 137 Interface Stability Obsolete 138 .TE 139 140 .SH SEE ALSO 141 .LP 142 \fBypmake\fR(1M), \fBypserv\fR(1M), \fBNISLDAPmapping\fR(4), 143 \fBattributes\fR(5) 144 .sp 145 .LP 146 \fI\fR