aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* Include <sys/types.h> explicitly to get declaration of u_long forBruce Evans1995-02-031-1/+2
| | | | | | | <netinet/in.h> - don't depend on namespace pollution in <stdio.h>. Notes: svn path=/head/; revision=6157
* Added ${.CURDIR}s to afterinstall target.Bill Paul1995-02-031-7/+3
| | | | Notes: svn path=/head/; revision=6150
* Put ${.CURDIR}s in front of Makefile.yp and mknetid in the required places.Bill Paul1995-02-031-8/+5
| | | | | | | Also took out uneeded BINDIR & BINMODE stuff. Notes: svn path=/head/; revision=6149
* Removed reference in comments to -o option of yppasswdd: -o optionBill Paul1995-02-031-2/+2
| | | | | | | no longer exists. Notes: svn path=/head/; revision=6146
* Cleaned up and updated the yppasswdd man page to reflect FreeBSD-specificBill Paul1995-02-021-70/+173
| | | | | | | changes and new options. (more new man pages and an NIS tutorial to follow) Notes: svn path=/head/; revision=6137
* Need to set a umask to avoid security problems (/var/yp/passwdBill Paul1995-02-011-1/+2
| | | | | | | world-writable). Notes: svn path=/head/; revision=6108
* Cleaned up usage() -- removed bogus references to opassfile, which isn'tBill Paul1995-02-012-8/+3
| | | | | | | | | used anymore (/var/yp/Makefile creates a new /var/yp/passwd file from /var/yp/master.passwd using awk, so yppasswdd doesn't have to make it anymore). Notes: svn path=/head/; revision=6107
* /var/yp/Makefile doesn't create passwd file from master.passwd fileBill Paul1995-02-011-2/+2
| | | | | | | | | | correctly (specified wrong fields to awk). Note that the files in question are noe the local /etc/master.passwd and /etc/passwd files: this Makefile expects there to be a seperate master.passwd file under /var/yp for NIS database creation. Notes: svn path=/head/; revision=6103
* Added the yppwupdate script. This is a small shell script that yppasswddBill Paul1995-02-012-0/+13
| | | | | | | | | | executes after it finishes updating the raw master.passwd file. The script is just there to invoke /var/yp/Makefile to build new maps and yppush them. We could have yppasswdd run /var/yp/Makefile directly, but this allws a bit more flexibility: the user may decide to run some other commands too. Notes: svn path=/head/; revision=6085
* Added Makefile.yp and mknetid, which are needed to rebuild NIS maps.Bill Paul1995-02-013-1/+358
| | | | | | | | mknetid is a script. Both are installed by an afterinstall which as been added to the main Makefile. Notes: svn path=/head/; revision=6084
* New Makefiles for YP server stuff.Bill Paul1995-01-312-0/+9
| | | | Notes: svn path=/head/; revision=6071
* Obtained from: The NYS projectBill Paul1995-01-318-0/+897
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a ported/modified version of yppasswd from the NYS yppasswd-0.5 package. This package has code in it from both Olaf Kirch and Theo de Raadt. There are GPL references and BSD-style copyright all over the place... hopefully I won't get flamed into oblivion for commiting this. This program has been modified from the original in the following ways: - Changed the ALLOW_CHFN and ALLOW_CHSH compile-time options into run-time options. - Demolished the password update functions and replaced them with routines to handle FreeBSD-style passwordd databases. It is expected that a seperate master.passwd file will be maintained for use with the NIS maps. yppasswd will have to be told where it is: % yppasswdd -m /var/yp/master.passwd A /var/yp/passwd file will be generated from /var/yp/master.passwd by /var/yp/Makefile. When yppasswdd has finished modifying the master.passwd file, it will invoke /usr/libexec/yppwupdate, which is a script that will run /var/yp/Makefile to generate new maps and push them. Note that there are copies if pw_util.c and pw_copy.c here. This is deliberate: they are *not* identical to the originals. Very similar, yes, but not identical. *sigh* Notes: svn path=/head/; revision=6070
* Obtained from: The NYS projectBill Paul1995-01-317-0/+2938
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a hacked-up port of the ypserv-0.11 server from the NYS project written by Peter Eriksson. The original package included some map creating and dumping tools and was based on GDBM. This version has been modified in the following ways: - GDBM replaced with DB and many weird hacks made to the read_database() function because of this. - implimented the ypxfr service (using ypxfr from the yps-0.21 package, aso from the NYS project) - added code to check the TCP port from which NIS requests originate: the server will refuse to serve the master.passwd.{byname|byuid} maps if the request doesn't come from a privileged port. Normally, only the superuser can issue such a request. Requests for the passwd.{bynam|byuid} maps aren't affected. There will be a small change made to getpwent.c in libc to complement this. - added code to do DNS lookups via actual resolver queries instead of relying on gethostbyname() and friends. The author noted in the original documentation that a loop condition could arise where the server would query itself for hostsname lookups. Using direct DNS lookups prevents this from happening. - added code to properly fork() the server into the background unless invoked with the -debug flag. - Added combined syslog/perror function. - fixed a few bugs (which were probably introduced by all the other changes) - Created a bmake Makefile. Note that this package can be linked against the tcp_wrapper package to provide address-based authentication, but this isn't done by default since the tcp_wrapper package isn't part of FreeBSD. Notes: svn path=/head/; revision=6069
* Obtained from: The NYS projectBill Paul1995-01-312-0/+252
This program is used for both generating and dumping NIS maps. It's very similar to the 'makedbm' command in SunOS. This program was ported from the yps-0.21 package. It's close to the original except for the GDBM to DB conversions. This was simple compared to the other YP components. Notes: svn path=/head/; revision=6068