summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv/Makefile.yp
Commit message (Collapse)AuthorAgeFilesLines
* Support shadow.byname and shadow.byuid maps, protecting them bybrian2009-06-251-21/+71
| | | | | | | | | | insisting on privileged port access. Include /var/yp/Makefile.local if it exists and suggest using it to override /var/yp/Makefile behaviour. Approved by: re (kib) MFC after: 3 weeks
* o NIS clients ask for "shells" map not "shells.list".maxim2006-06-081-2/+1
| | | | | | PR: kern/86693 Submitted by: Victor Sudakov MFC after: 1 month
* - Let make(1) track dependencies and regen netid map when needed.ru2006-04-131-8/+1
| | | | - Add missing dependency for netid.byname.
* add targets for ipnodes.byname and ipnodes.byaddr which carriesume2005-05-021-0/+38
| | | | | IPv6 addresses. these targets are off by default, and these are built when there is /var/yp/ipnodes.
* Eliminated two dozens of superfluous cats and two r-cats (sorry, Jordan).ru2003-06-131-73/+51
| | | | Suggested by: Dan Nelson
* Add a target for the creation of a /etc/shells map and add it torobert2003-03-211-2/+12
| | | | the maps which are built by default.
* Fix an inconsistency between what FreeBSD NIS and AMD think themarkm2002-02-061-3/+3
| | | | AMD map name should be.
* The aliases file now lives in /etc/mail/.gshapiro2001-05-151-1/+1
| | | | | PR: misc/26648 MFC after: 3 days
* Fix typo: seperate -> separate.asmodai2001-02-061-1/+1
| | | | Seperate does not exist in the english language.
* Further protection against comments in /etc/{passwd,group}brian2000-06-281-4/+6
| | | | | Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> PR: 14269
* Handle comments and empty lines when generating YP passwd and group filesbrian2000-06-151-4/+8
| | | | | PR: 14269 Submitted by: howard@ee.utah.edu
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Modify yp_mkdb so that it only checks for bogus '+' and '-' characterswpaul1999-08-221-7/+7
| | | | | | | | | | | in source input if the -f flag is used, and modify Makefile.yp to only use -f for the passwd, master.passwd and group maps. These should be the only ones for which the + and - characters have special meaning that make it important for us to avoid letting them into any of the map databases. In some cases (namely the automounter maps) we have to allow at least the - character through in order to create the map properly. This closes PR #8699.
* Fix typo (missing double quote)n_hibma1999-06-241-2/+2
|
* A comment in /usr/src/usr.sbin/ypserv/Makefile.ypphk1998-07-221-4/+3
| | | | | | | | | | (a.k.a. /var/yp/Makefile.dist) refers to an obsoleted usage of the -m option of rpc.yppasswdd. It is currently taken over by the -t option. -m is used for a different purpose now. PR: 7279 Reviewed by: phk Submitted by: Amakawa Shuhei <amakawa@nebula.sf.t.u-tokyo.ac.jp>
* *sigh* I will not commit late at night. I will not commit late at night.wpaul1998-02-211-2/+1
| | | | | | | | | | I will not commit late at night. I will not commit late at night. I swear it's been Monday all week for me. Apply proper fix for services target submitted by Andre Albsmeier <andre.albsmeier@mchp.siemens.de>. Sorry for botching this that last time, Andre. (Could have been worse: t least I didn't break the build.)
* Arghhh.... another missing backslash. Yes, I feel stupid.wpaul1998-02-201-2/+2
|
* Doh! Replace backslash that got eaten by gremlins in the last commit.wpaul1998-02-181-2/+2
|
* Close PR #2206: fix the services.byname target so that it can handlewpaul1998-02-131-5/+7
| | | | | | | | | | /etc/services entries with any protocol instead of just udp and tcp. Rather thani having the awk script explicitly search for 'udp' or 'tcp' in the second field using index(), use split() to break up the field at the '/' character if it exists, which extracts the protocol from the field no matter what it is. PR: 2206
* Fix Makefile.yp so that it no longer creates a temporary file calledwpaul1998-02-041-83/+47
| | | | | | | | /tmp/ypmake, thereby fixing problems with successive map updates possibly reading stale copies of this file left behind by a previous failed run. PR: 5571
* Allow comments to begin with multiple '#' characters.steve1998-01-251-22/+22
| | | | | PR: 4452 Submitted by: Joao Carlos Mendes Luis <Jonny@mailhost.coppe.ufrj.br>
* Add a ypinit script and man page (script lifted from OpenBSD and haquedwpaul1997-11-101-12/+107
| | | | | | | | to work on FreeBSD, man page written by me.) Also change Makefile.yp a little to be more tolerane in the face of missing source files. Print a message if we can't find /var/yp/master.passwd telling the user what to do to fix things.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Two small tweaks:wpaul1997-02-091-3/+3
| | | | | | | | | | - servers should be the first target listed in 'all:' in order for slave servers to be updated correctly: yppush reads the ypservers map to figure out where all the slaves are, so it needs to be loaded onto the master ASAP. - Fixed small bogon in publickey target which nobody has noticed since we're not using the publickey.byname map yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Eek! When I added the YP_INTERDOMAIN and YP_SECURE support, I documentedwpaul1996-11-151-5/+5
| | | | | | | | | | and set the B and S variables here, but I forgot to actually add them to the master.passwd and hosts.* targets. In other words, they weren't being passed to yp_mkdb as needed. This needs to go into 2.2; it doesn't break things a lot, but it leaves your master.passwd maps available to unprivileged users without you realizing it.
* Add support for handling the YP_SECURE and YP_INTERDOMAIN keys fromwpaul1996-10-241-1/+12
| | | | | | | | | | | | any maps that may have them. If the YP_SECURE key is present, ypserv will only allow access to the map from clients on reserved ports. If the YP_INTERDOMAIN key is present, the server will do DNS lookups for hostnames that it can't find in hosts.byname or hosts.byaddr. This is the same as the -d flag (which is retained for backwards compatibility) but it can be set on a per-map/per-domain basis. Also modified /var/yp/Makefile to add YP_INTERDOMAIN to the hosts.* maps and YP_SECURE to master.passwd.* maps by default.
* was missing @adam1996-08-091-2/+2
|
* Fix the services.byname target so that it creates search keys for thepeter1996-07-251-4/+6
| | | | | | | aliases of the "official" names as well, because now that getportbyname() does a yp match, it no longer found the entries under the alias. This broke rsh(1), because it looks up "shell/tcp" while the official name in /etc/services is "cmd/tcp".
* Fix typo in last commit, it seems that a hash comments out a \ at the endpeter1996-07-241-4/+4
| | | | | | | | of line. Also, fix existing bug in ethers.byname, it was passing an unknown option to yppush. This appears to have been a cut/paste slip intended for a $(DBLOAD) command above it.
* Add sample rules for amd.host, mostly from the AMD docs, but tweaked to fitpeter1996-07-241-2/+26
| | | | | | | | the FreeBSD Makefile.yp structure by me. This allows you to have a single amd map for all machines in a cluster. In /etc/sysconfig, it would look something like: amdflags="-p -a /net -c 1800 -l syslog /host amd.host"
* 'mkaliases' is broken (strips spaces) so don't use it,adam1996-07-181-11/+8
| | | | | perhaps it can be removed altogether. corrected typos
* Toss old mknetid script into the attic.wpaul1996-06-251-3/+4
| | | | Adjust things slightly to support the new mknetid program.
* Makefile.yp:wpaul1996-06-051-2/+17
| | | | | | | | | | | | | | | | | | | | | | | - Add a 'pushpw' target that only yppushes the various passwd maps and sends a YPPROC_CLEAR to the local ypserv. This will be used by rpc.yppasswdd once I merge in the in-place update changes. yp_access.c: - Make the yp_access() function print RPC program and procedure numbers that it doesn't know about in literal form. This will allow it to work with other prgrams that it doesn't know about, like rpc.ypxfrd I'm going to import shortly. yp_dblookup.c: - Take out the __inline keywords. They weren't really helping me anyway. - Somehow I broke yp_next() when DB_CACHE wasn't #defined. Fix it. - Also fix potential case where yp_next() might loop forever; make sure it checks the return values of all the (dbp->seq)()/R_NEXT calls that it does as well as comparing keys.
* Small touch-ups -- no functional changes.wpaul1996-05-311-3/+3
| | | | | | | | | | | | | | | Fix some comments to reflect reality (in some cases I made changes to code but not to the comments). Change some instances of 'inline' to '__inline' to pacify gcc -ansi -pedantic. Use rcsid strings more consistently. Make 'oldaddr' static in yp_access(). Use strcpy()/strcat() in yp_open_db_cache() instead of snprintf(). (Seems to be a little faster this way.)
* Performance enhancements (I hope) and new stuff:wpaul1996-04-281-54/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | yp_dblookup.c: - Implement database handle caching. What this means is that instead of opening and closing map databases for each request, we open a database and save the handle (and, if requested, the key index) in an array. This saves a bit of overhead on things like repeated YPPROC_NEXT calls, such as you'd get from getpwent(). Normally, each YPPROC_NEXT would require open()ing the database, seeking to the location supplied by the caller (which is time consuming with hash databases as the R_CURSOR flag doesn't work), reading the data, close()ing the database and then shipping the data off to the caller. The system call overhead is prohibitive, especially with very large maps. By caching the handle to an open database, we elimitate at least the open()/close() system calls, as well as the associated DB setup and tear-down operations, for a large percentage of the time. This improves performance substantially at the cost of consuming a little more memory than before. Note that all the caching support is surrounded by #ifdef DB_CACHE so that this same source module can still be used by other programs that don't need it. - Make yp_open_db() call yp_validdomain(). Doing it here saves cycles when caching is enabled since a hit on the map cache list by definition means that the domain being referenced is valid. - Also make yp_open_db() check for exhaustion of file descriptors, just in case. yp_server.c: - Reorganize things a little to take advantage of the database handle caching. Add a call to yp_flush_all() in ypproc_clear_2_svc(). - Remove calls to yp_validdomain() from some of the service procedures. yp_validdomain() is called inside yp_open_db() now, so procedures that call into the database package don't need to use yp_validdomain() themselves. - Fix a bogosity in ypproc_maplist_2_svc(): don't summarily initiallize the result.maps pointer to NULL. This causes yp_maplist_free() to fail and leaks memory. - Make ypproc_master_2_svc() copy the string it gets from the database package into a private static buffer before trying to NUL terminate it. This is necessary with the DB handle caching: stuffing a NUL into the data returned by DB package will goof it up internally. yp_main.c: - Stuff for DB handle caching: call yp_init_dbs() to clear the handle array and add call to yp_flush_all() to the SIGHUP signal handler. Makefile.yp: - Reorganize to deal with database caching. yp_mkdb(8) can now be used to send a YPPROC_CLEAR signal to ypserv(8). Call it after each map is created to refresh ypserv's cache. - Add support for mail.alias map. Contributed by Mike Murphy (mrm@sceard.com). - Make default location for the netgroups source file be /var/yp/netgroup instead of /etc/netgroup. mkaliases: - New file: script to generate mail.alias map. Contributed by Mike Murphy (mrm@sceard.com). Makefile: - Install Makefile.yp as /var/yp/Makefile.dist and link it to /var/yp/Makefile only if /var/yp/Makefile doesn't already exist. Suggested by Peter Wemm. - Install new mkaliases script in /usr/libexec along with mknetid. - Use somewhat saner approach to generating rpcgen-dependent files as suggested by Garrett Wollman.
* Makefile.yp:wpaul1996-02-041-2/+6
| | | | | | | | - Improve support for multiple domains. (In preparation for new rpc.yppasswdd.) yp_dblookup.c: - Improve error reporting: be more selective as to what error code we return when a (dbp->get) fails.
* Update pointer to yppush.wpaul1996-01-121-2/+2
| | | | (And now, on to rpc.yppasswdd...)
* This commit was generated by cvs2svn to compensate for changes in r12891,wpaul1995-12-161-0/+394
which included commits to RCS files with non-trunk default branches.
OpenPOWER on IntegriCloud