1*b5677b36Schristos.\" Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") 2*b5677b36Schristos.\" Copyright (c) 1996,1999 by Internet Software Consortium 3*b5677b36Schristos.\" 4*b5677b36Schristos.\" Permission to use, copy, modify, and distribute this software for any 5*b5677b36Schristos.\" purpose with or without fee is hereby granted, provided that the above 6*b5677b36Schristos.\" copyright notice and this permission notice appear in all copies. 7*b5677b36Schristos.\" 8*b5677b36Schristos.\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES 9*b5677b36Schristos.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10*b5677b36Schristos.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR 11*b5677b36Schristos.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12*b5677b36Schristos.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13*b5677b36Schristos.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14*b5677b36Schristos.\" OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15*b5677b36Schristos.\" 16*b5677b36Schristos.\" Copyright (c) 1986, 1991, 1993 17*b5677b36Schristos.\" The Regents of the University of California. All rights reserved. 18*b5677b36Schristos.\" 19*b5677b36Schristos.\" Redistribution and use in source and binary forms, with or without 20*b5677b36Schristos.\" modification, are permitted provided that the following conditions 21*b5677b36Schristos.\" are met: 22*b5677b36Schristos.\" 1. Redistributions of source code must retain the above copyright 23*b5677b36Schristos.\" notice, this list of conditions and the following disclaimer. 24*b5677b36Schristos.\" 2. Redistributions in binary form must reproduce the above copyright 25*b5677b36Schristos.\" notice, this list of conditions and the following disclaimer in the 26*b5677b36Schristos.\" documentation and/or other materials provided with the distribution. 27*b5677b36Schristos.\" 3. All advertising materials mentioning features or use of this software 28*b5677b36Schristos.\" must display the following acknowledgement: 29*b5677b36Schristos.\" This product includes software developed by the University of 30*b5677b36Schristos.\" California, Berkeley and its contributors. 31*b5677b36Schristos.\" 4. Neither the name of the University nor the names of its contributors 32*b5677b36Schristos.\" may be used to endorse or promote products derived from this software 33*b5677b36Schristos.\" without specific prior written permission. 34*b5677b36Schristos.\" 35*b5677b36Schristos.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 36*b5677b36Schristos.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 37*b5677b36Schristos.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 38*b5677b36Schristos.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 39*b5677b36Schristos.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 40*b5677b36Schristos.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 41*b5677b36Schristos.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 42*b5677b36Schristos.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 43*b5677b36Schristos.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 44*b5677b36Schristos.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 45*b5677b36Schristos.\" SUCH DAMAGE. 46*b5677b36Schristos.\" 47*b5677b36Schristos.\" Id: irs.conf.man5,v 1.2 2009/01/21 00:12:34 each Exp 48*b5677b36Schristos.\" 49*b5677b36Schristos.Dd November 16, 1997 50*b5677b36Schristos.Dt IRS.CONF 5 51*b5677b36Schristos.Os BIND 8.1 52*b5677b36Schristos.Sh NAME 53*b5677b36Schristos.Nm irs.conf 54*b5677b36Schristos.Nd Information Retrieval System configuration file 55*b5677b36Schristos.Sh SYNOPSIS 56*b5677b36Schristos.Nm irs.conf 57*b5677b36Schristos.Sh DESCRIPTION 58*b5677b36SchristosThe 59*b5677b36Schristos.Xr irs 3 60*b5677b36Schristosfunctions are a set of routines in the C library which provide access to 61*b5677b36Schristosvarious system maps. 62*b5677b36SchristosThe maps that irs currently controls are the following: passwd, group, 63*b5677b36Schristosservices, protocols, hosts, networks and netgroup. 64*b5677b36SchristosWhen a program first calls a function that accesses one of these maps, 65*b5677b36Schristosthe irs configuration file is read, 66*b5677b36Schristosand the source of each map is determined for the life of the process. 67*b5677b36Schristos.Pp 68*b5677b36SchristosIf this file does not exist, 69*b5677b36Schristosthe irs routines default to using local sources for all information, 70*b5677b36Schristoswith the exception of the host and networks maps, 71*b5677b36Schristoswhich use the Domain Name System (DNS). 72*b5677b36Schristos.Pp 73*b5677b36SchristosEach record in the file consists of one line. 74*b5677b36SchristosA record consists of a map-name, an access-method and possibly a (comma 75*b5677b36Schristosdelimited) set of options, 76*b5677b36Schristosseparated by tabs or spaces. 77*b5677b36SchristosBlank lines, and text between a # and a newline are ignored. 78*b5677b36Schristos.Pp 79*b5677b36SchristosAvailable maps: 80*b5677b36Schristos.Bd -literal -offset indent 81*b5677b36SchristosMap name Information in map 82*b5677b36Schristos========= ================================== 83*b5677b36Schristospasswd User authentication information 84*b5677b36Schristosgroup User group membership information 85*b5677b36Schristosservices Network services directory 86*b5677b36Schristosprotocols Network protocols directory 87*b5677b36Schristoshosts Network hosts directory 88*b5677b36Schristosnetworks Network "network names" directory 89*b5677b36Schristosnetgroup Network "host groups" directory 90*b5677b36Schristos.Ed 91*b5677b36Schristos.Pp 92*b5677b36SchristosAvailable access methods: 93*b5677b36Schristos.Bd -literal -offset indent 94*b5677b36SchristosAccess method Description 95*b5677b36Schristos============= ================================================= 96*b5677b36Schristoslocal Use a local file, usually in /etc 97*b5677b36Schristosdns Use the domain name service (includes hesiod) 98*b5677b36Schristosnis Use the Sun-compatible Network Information Service 99*b5677b36Schristosirp Use the IRP daemon on the localhost. 100*b5677b36Schristos.Ed 101*b5677b36Schristos.Pp 102*b5677b36SchristosAvailable options: 103*b5677b36Schristos.Bd -literal -offset indent 104*b5677b36SchristosOption Description 105*b5677b36Schristos======== ================================================ 106*b5677b36Schristoscontinue don't stop searching if you can't find something 107*b5677b36Schristosmerge don't stop searching if you CAN find something 108*b5677b36Schristos.Ed 109*b5677b36Schristos.Pp 110*b5677b36SchristosThe continue option creates 111*b5677b36Schristos.Dq "union namespaces" 112*b5677b36Schristoswhereby subsequent access methods of the same map type can be tried 113*b5677b36Schristosif a name cannot be found using earlier access methods. 114*b5677b36SchristosThis can be quite confusing in the case of host names, 115*b5677b36Schristossince the name to address and address to name mappings can be visibly 116*b5677b36Schristosasymmetric even though the data used by any given access method is 117*b5677b36Schristosentirely consistent. This behavior is, therefore, not the default. 118*b5677b36Schristos.Pp 119*b5677b36SchristosThe merge option only affects lookups in the groups map. 120*b5677b36SchristosIf set, subsequent access methods will be tried in order to cause 121*b5677b36Schristoslocal users to appear in NIS (or other remote) groups in addition 122*b5677b36Schristosto the local groups. 123*b5677b36Schristos.Sh EXAMPLE 124*b5677b36Schristos.Bd -literal -offset indent 125*b5677b36Schristos# Get password entries from local file, or failing that, NIS 126*b5677b36Schristospasswd local continue 127*b5677b36Schristospasswd nis 128*b5677b36Schristos 129*b5677b36Schristos# Build group membership from both local file, and NIS. 130*b5677b36Schristosgroup local continue,merge 131*b5677b36Schristosgroup nis 132*b5677b36Schristos 133*b5677b36Schristos# Services comes from just the local file. 134*b5677b36Schristosservices local 135*b5677b36Schristos 136*b5677b36Schristosprotocols local 137*b5677b36Schristos 138*b5677b36Schristos# Hosts comes first from DNS, failing that, the local file 139*b5677b36Schristoshosts dns continue 140*b5677b36Schristoshosts local 141*b5677b36Schristos 142*b5677b36Schristos# Networks comes first from the local file, and failing 143*b5677b36Schristos# that the, irp daemon 144*b5677b36Schristosnetworks local continue 145*b5677b36Schristosnetworks irp 146*b5677b36Schristos 147*b5677b36Schristosnetgroup local 148*b5677b36Schristos.Ed 149*b5677b36Schristos.Sh NOTES 150*b5677b36SchristosIf a local user needs to be in the local host's 151*b5677b36Schristos.Dq wheel 152*b5677b36Schristosgroup but not in every host's 153*b5677b36Schristos.Dq wheel 154*b5677b36Schristosgroup, put them in the local host's 155*b5677b36Schristos.Pa /etc/group 156*b5677b36Schristos.Dq wheel 157*b5677b36Schristosentry and set up the 158*b5677b36Schristos.Dq groups 159*b5677b36Schristosportion of your 160*b5677b36Schristos.Pa /etc/irs.conf 161*b5677b36Schristosfile as: 162*b5677b36Schristos.Bd -literal -offset indent 163*b5677b36Schristosgroup local continue,merge 164*b5677b36Schristosgroup nis 165*b5677b36Schristos.Ed 166*b5677b36Schristos.Pp 167*b5677b36SchristosNIS takes a long time to time out. 168*b5677b36SchristosEspecially for hosts if you use the 169*b5677b36Schristos.Fl d 170*b5677b36Schristosoption to your server's 171*b5677b36Schristos.Dq ypserv 172*b5677b36Schristosdaemon. 173*b5677b36Schristos.Pp 174*b5677b36SchristosIt is important that the 175*b5677b36Schristos.Pa irs.conf 176*b5677b36Schristosfile contain an entry for each map. 177*b5677b36SchristosIf a map is not mentioned in the 178*b5677b36Schristos.Pa irs.conf 179*b5677b36Schristosfile, all queries to that map will fail. 180*b5677b36Schristos.Pp 181*b5677b36SchristosThe classic NIS mechanism for specifying union namespaces is to add an entry 182*b5677b36Schristosto a local map file whose name is ``+''. In IRS, this is done via ``continue'' 183*b5677b36Schristosand/or ``merge'' map options. While this results in a small incompatibility 184*b5677b36Schristoswhen local map files are imported from non-IRS systems to IRS systems, there 185*b5677b36Schristosare compensating advantages in security and configurability. 186*b5677b36Schristos.Sh FILES 187*b5677b36Schristos.Bl -tag -width /etc/irs.confXXXX -compact 188*b5677b36Schristos.It Pa /etc/irs.conf 189*b5677b36SchristosThe file 190*b5677b36Schristos.Nm irs.conf 191*b5677b36Schristosresides in 192*b5677b36Schristos.Pa /etc . 193*b5677b36Schristos.El 194*b5677b36Schristos.Sh SEE ALSO 195*b5677b36Schristos.Xr groups 5 , 196*b5677b36Schristos.Xr hosts 5 , 197*b5677b36Schristos.Xr netgroup 5 , 198*b5677b36Schristos.Xr networks 5 , 199*b5677b36Schristos.Xr passwd 5 , 200*b5677b36Schristos.Xr protocols 5 , 201*b5677b36Schristos.Xr services 5 202