Commit Graph

38 Commits

Author SHA1 Message Date
christos 4e7d8e10f6 - Filter out the YP_ keys from mail.aliases. How did this ever work?
- Don't be verbose when creating the amd maps.
2001-08-06 18:28:19 +00:00
hubertf 86a406c1ce * Allow generating more than one amd map, by storing the maps to create
in a variable that can be added other maps than amd.home. Patch submitted
   in PR 11826 by Anthony Mallet <anthony.mallet@ficus.yi.org>
 * Slightly optimize calculation of DOMAIN
2001-08-05 12:40:15 +00:00
garbled 3815ce799a Add a -l argument to ypinit that allows adding servers in the format
server1,server2,server3 on the command line.  This allows the user to
optionally avoid the interactive mode of ypinit.  If the -l flag is not
supplied, the old behavior is retained.

This allows users to do things like rsh out creation of YP clients, and
sushi to generate yp clients/servers/slaves.
2001-08-01 07:01:03 +00:00
christos 26dfd4a9a0 Fix bogus awk + sed combination to handle continuations and empty lines.
It broke a sequence of:

	key1 \
		value1 \
		value2 \
		value3 \


	key2 \
		value4 \


	etc.

Handle both the netgroup rule and the amd.home rule using a .USEBEFORE
macro rule, since they contain the same code.
XXX: Needs new make(1)
2001-07-03 18:15:06 +00:00
wiz f3f6c5b675 `accessible' only has one `a'. 2001-06-19 12:52:20 +00:00
lukem 6a56b422c8 use mktemp(1) as appropriate 2001-06-18 11:21:54 +00:00
scottr acef071496 Fix the sorting introduced in rev 1.9 for the netgroup map:
handle entries that span multiple lines correctly.
2001-01-16 07:15:18 +00:00
itojun 0eafc475c2 /etc/mail/aliases, not /etc/aliases. PR 10167. 2000-10-11 16:51:55 +00:00
christos 2565bd1854 oops, use MAKEDBM_S 2000-09-19 18:24:54 +00:00
christos 06e8cfa1f8 add a non-enabled rule to build solaris and linux shadow files. 2000-09-19 18:23:43 +00:00
itojun f96e3b36f6 generate ipnodes.{byname,byaddr} for IPv4/v6 lookups.
hosts.{byname,byaddr} is still an IPv4 only mapping.
obeys solaris8 practice.  see comments in ypinit/Makefile.yp for details.

TODO: interop test with solaris8 (any takers?)
2000-07-30 02:33:13 +00:00
abs 3214d69367 Our db btree(3) implementation is tuned for ordered insertion, so pipe
through sort before makedbm.
This drops Erik Rungi's <rungus@openface.ca> passwd.byname generation for
3000 entries from 25-30 seconds down to 0.75 seconds.
1999-11-19 16:55:25 +00:00
lukem 04833e78b6 split line 1999-04-25 06:28:10 +00:00
mycroft d77575d3c8 Clean up SYNOPSIS formatting. 1999-03-07 11:58:22 +00:00
lukem d595bfe79d add ypinit -c (setup yp client) 1998-06-08 06:29:25 +00:00
lukem 3ed28f5cc1 disable INSECURE=yes now that libc support master.passwd YP maps 1998-06-08 03:44:34 +00:00
lukem e91c20c007 overhaul code, provide saner error messages, etc 1997-11-18 00:44:19 +00:00
lukem a2a60bf6a6 note that INSECURE=no isn't yet supported for netbsd clients 1997-11-18 00:37:23 +00:00
lukem 721843cf7a use ".Tn YP" instead of "YP", fix up some .Nd entries, use .Pa for mapnames 1997-11-08 15:03:21 +00:00
lukem f4fb444bd9 * rewrite read_line(), partially based on get_line in netgroup_mkdb.c:
- use fgetln() instead of fgets()
	- store info in internal buffer
	- fix \\ support
	- count line numbers internally, so \\ lines don't mess up count
* ypdb_store():
	- ensure that the length of key or val doesn't exceed YPMAXRECORD
* makedbm, mknetid, revnetgroup, stdethers, stdhosts:
	- improve error handling
	- take advantage of rewritten read_line(), and cleanup line parsing
	- don't print trailing ` ' for key/val pairs with an empty val
* Makefile.yp:
	- fix up building of ypservers (from Chuck Cranor)
* ypinit.sh:
	- remove leading spaces in variable assignment (from Chuck Cranor)
1997-11-01 14:24:50 +00:00
lukem ad4916f857 fix spellos and incorrect man page references 1997-10-25 10:18:36 +00:00
lukem b252d2a436 - major cleanup of Makefile.yp to use modern make(1) variables, and
follow our formatting convetions.
- add support for aliases, amd.home, master.passwd and netgroup maps
  [initially from openbsd, reworked as above]
- if INSECURE != "yes" then the passwd.by* maps will not contain the
  encrypted version of the passwd - privileged clients will request
  info from the master.passwd.by* maps.
  FreeBSD originally implemented this, and & OpenBSD supports it too.
  [from openbsd].

  By default, passwd maps are INSECURE, but in a *BSD-only environment,
  this could be disabled to allow for a [slightly] higher degree of
  security from non-root users...
1997-10-15 03:01:57 +00:00
mycroft ccacc504e5 Make this work again, and add ethers to the list of recursive targets. 1997-10-12 11:53:11 +00:00
lukem f5eefd0a1d - set the umask to 077, to protect the created directory
- clean up a couple of the messages
1997-10-08 14:09:19 +00:00
lukem dc497bdd46 cleanup typos, grammaros, thinkos, and misuse of mdoc macros 1997-10-07 14:23:50 +00:00
lukem ac64718550 - build common/* once, into a library, rather than recompiling each of
the files multiple times in the other subdirectories (saves about
  10% on compilation time)
- clean up the manual pages
1997-10-02 14:16:12 +00:00
jtc 87f4ccd45f Fix files using old TNF copyright notice 1997-07-30 22:53:50 +00:00
mikel a86b9a7361 pushed ethers, not hosts 1997-07-29 05:56:48 +00:00
christos 0aad9d4378 Makefile cleanups 1997-03-24 22:02:40 +00:00
cjs ca99d3bef4 Format and install ypinit manual page. (PR 3139 from
Andrew Wheadon <andrew@wipux2.wifo.uni-mannheim.de>.)
1997-01-27 00:28:31 +00:00
cjs 5416ba5d61 New manual page for ypinit(8). 1997-01-05 09:49:41 +00:00
thorpej c5306806ca Use ${INSTALL}. 1996-10-18 06:32:14 +00:00
thorpej 7026126974 Alter the ypservers rule a bit to always make sure that this map
exists.
1996-08-09 21:04:32 +00:00
thorpej e20d4be867 Add a rule for the `ypservers' map (the map containing a list of
slaves for the YP domain).  This map is not built by default, but the
rule exists to make adding slave servers a bit easier.
1996-08-09 20:58:36 +00:00
thorpej 5c49628ed7 Remove hard-coded a /var/yp. 1996-08-09 15:16:30 +00:00
thorpej 012dde15fd Install the Makefiles with mode 0644, not ${BINMODE} 1996-08-09 15:11:47 +00:00
thorpej 236743c464 Make this script a little more sane. 1996-08-09 15:09:04 +00:00
thorpej 60aa689c94 A ypserv implementation, originally written by Mats O Jansson, with
some changes by me, including misc. cleanup, minor bug fixes, and
brand-new access control list code.
1996-08-09 10:14:49 +00:00