Commit Graph

27 Commits

Author SHA1 Message Date
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