summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.yppasswdd/yppasswdd_main.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove duplicated header fileskevlo2011-06-241-1/+0
|
* - Whenever a password/shell is changed via rpc.yppasswdd, the daemon leavesrafan2008-10-301-0/+4
| | | | | | | | | | | | | one zombie process because it does not do the cleanup. For a long running NIS/YP server, it will have lots of zombie processes on it. Fix that by ignoring the SIGCHLD signal since we don't really care about the exit status in this case. PR: bin/91980 Reported by: Arjan van der Velde <dj_noresult at hotmail.com> Submitted by: Jui-Nan Lin" <jnlin at csie.nctu.edu.tw> Reviewed by: delphij MFC after: 1 month
* Use socklen_t in place of socket operations, instead of intdelphij2005-05-021-2/+2
|
* Remove definition of struct dom_binding, it's non-standard C code andstefanf2004-10-171-1/+0
| | | | unnecessary since src/include/rpcsvc/ypclnt.h's revision 1.10.
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.obrien2003-05-031-4/+2
|
* Implement nonblocking tpc-connections. rpcgen -m does stillmbr2003-01-161-0/+4
| | | | | | | | produce backcompatible code. Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day
* unbreak build: fix multi-line string literalalfred2002-05-111-1/+1
|
* Use libutil instead of pw_{copy,util}.c. Clean up a little. Warnsify.des2002-05-081-33/+54
| | | | Sponsored by: DARPA, NAI Labs
* ANSIfy and remove some dead code.des2002-02-061-8/+7
| | | | Sponsored by: DARPA, NAI Labs
* Apply the following mechanical transformations in preparation fordes2002-02-061-1/+1
| | | | | | | | | | | | | | | | | ansification and constification: s{\s+__P\((\(.*?\))\)}{$1}g; s{\(\s+}{\(}g; s{\s+\)}{\)}g; s{\s+,}{,}g; s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g; s{return ([^\(].*?);}{return ($1);}g; s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g; s{\s+$}{\n};g Also add $FreeBSD$ where needed. MFC after: 1 week
* Fix the breakage in rpc.yppasswd. Readded the svc_create() andalfred2002-02-051-57/+39
| | | | | | | | | | | the registering of the "unix" transport, now it is fixed. Everywhere, rq_cred is taken to look what authentification we have. We can not be sure that transp>xp_verf.oa_flavor is also filled in. This seems to be the same for all sun source. they take the flavor of rq_cred, instead of transp. Submitted by: mbr
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andalfred2001-03-191-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | associated changes that had to happen to make this possible as well as bugs fixed along the way. Bring in required TLI library routines to support this. Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls. This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway). The submitter has agreed to continue on and bring us up to the 1999 release. Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface. Many userland updates were done to bring the code up to par with the recent RPC API. There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library. While we're at it, bring in NetBSD's lockd, it's been far too long of a wait. New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper. Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6. Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure. Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul
* Remove unused include.asmodai2000-04-291-1/+0
|
* remove extern int errno; include errno.himp2000-04-141-1/+0
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Host names are case-insensitive.brian1999-03-161-2/+2
|
* Remove multiply defined Id string. Hide sccsid string.charnier1997-10-131-10/+10
|
* Modify rpc.yppasswdd to use the new AF_LOCAL transport in the RPC librarywpaul1997-07-291-54/+22
| | | | | instead of its own kludged up version. This makes the special 'superuser-only' update procedure work just like a real RPC service.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-3/+3
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-2/+2
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-2/+2
| | | | | | | | 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.
* Fix harmless bugs found while hunting for chpass nis failurepeter1996-11-151-3/+3
|
* Make error messages more informative.wpaul1996-10-231-4/+9
|
* Two small changes that were in my development sources at homewpaul1996-10-221-25/+7
| | | | | | | but never made it here for some reason: - 'u' option was missing from getopt string - Use daemon() to become daemonic.
* Whoops: had a couple of hardcoded instances of '/var/yp/' that shouldn'twpaul1996-06-231-4/+4
| | | | have been there. Fixed to use yp_dir, which can be set on the command line.
* Added support for in-place updates:wpaul1996-06-051-4/+8
| | | | | | | | | | | | | | | | | If rpc.yppasswdd is invoked with the -i flag, password changes will be made to the master.passwd template file and the hash map files in-place, which means it won't have to run a complete map update. Instead, it calls /var/yp/Makefile with the 'pushpw' target, which just pushes the maps to the slaves and runs yp_mkdb -c to tell the local ypserv to flush its database cache. The server will check the passwd.byname and passwd.byuid maps to see if they were built in 'insecure' or 'secure' mode (i.e. with real encrypted passwords in them or without) and update them accordingly. This combined with rpc.ypxfrd greatly reduces the amount of time it takes to complete an NIS password change, especially with very large passwd databases.
* Add securenets support (uses same access control mechanism as ypserv,wpaul1996-02-241-5/+21
| | | | | | | | | | | | | | | also controlled by /var/yp/securenets). Add -u flag to turn off the privileged port check done by yp_access(); some commercial systems (IRIX, Solaris 2.x, HP-UX, and probably others) don't use a reserved port for submitting yppasswd updates. If we always enforce the check, these client systems will be unable to submit updates to us. Document securenets support and -u flag in man page. Like ypserv, you can compile rpc.yppasswdd to use the tcpwrapper package instead of securenets if you want to.
* This commit was generated by cvs2svn to compensate for changes in r14062,wpaul1996-02-121-0/+362
which included commits to RCS files with non-trunk default branches.
OpenPOWER on IntegriCloud