yppasswd.x revision 26208
11832Swollman/*
21832Swollman * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
31832Swollman * unrestricted use provided that this legend is included on all tape
41832Swollman * media and as a part of the software program in whole or part.  Users
51832Swollman * may copy or modify Sun RPC without charge, but are not authorized
61832Swollman * to license or distribute it to anyone else except as part of a product or
71832Swollman * program developed by the user.
81832Swollman *
91832Swollman * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
101832Swollman * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
111832Swollman * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
121832Swollman *
131832Swollman * Sun RPC is provided with no support and without any obligation on the
141832Swollman * part of Sun Microsystems, Inc. to assist in its use, correction,
151832Swollman * modification or enhancement.
161832Swollman *
171832Swollman * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
181832Swollman * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
191832Swollman * OR ANY PART THEREOF.
201832Swollman *
211832Swollman * In no event will Sun Microsystems, Inc. be liable for any lost revenue
221832Swollman * or profits or other special, indirect and consequential damages, even if
231832Swollman * Sun has been advised of the possibility of such damages.
241832Swollman *
251832Swollman * Sun Microsystems, Inc.
261832Swollman * 2550 Garcia Avenue
271832Swollman * Mountain View, California  94043
281832Swollman */
291832Swollman
301832Swollman/*
311832Swollman * YP password update protocol
321832Swollman * Requires unix authentication
331832Swollman */
341832Swollman
351832Swollman#ifndef RPC_HDR
361832Swollman%#ifndef lint
371832Swollman%/*static char sccsid[] = "from: @(#)yppasswd.x 1.1 87/04/13 Copyr 1987 Sun Micro";*/
381832Swollman%/*static char sccsid[] = "from: @(#)yppasswd.x	2.1 88/08/01 4.0 RPCSRC";*/
3926208Swpaul%static char rcsid[] = "$Id: yppasswd.x,v 1.1 1994/08/04 19:01:57 wollman Exp $";
401832Swollman%#endif /* not lint */
411832Swollman#endif
421832Swollman
431832Swollmanprogram YPPASSWDPROG {
441832Swollman	version YPPASSWDVERS {
451832Swollman		/*
461832Swollman		 * Update my passwd entry
471832Swollman		 */
481832Swollman		int
491832Swollman		YPPASSWDPROC_UPDATE(yppasswd) = 1;
501832Swollman	} = 1;
511832Swollman} = 100009;
521832Swollman
531832Swollman
541832Swollmanstruct x_passwd {
551832Swollman	string pw_name<>;	/* username */
561832Swollman	string pw_passwd<>;	/* encrypted password */
571832Swollman	int pw_uid;		/* user id */
581832Swollman	int pw_gid;		/* group id */
591832Swollman	string pw_gecos<>;	/* in real life name */
601832Swollman	string pw_dir<>;	/* home directory */
611832Swollman	string pw_shell<>;	/* default shell */
621832Swollman};
631832Swollman
641832Swollmanstruct yppasswd {
651832Swollman	string oldpass<>;	/* unencrypted old password */
661832Swollman	x_passwd newpw;		/* new passwd entry */
671832Swollman};
681832Swollman
691832Swollman
7026208Swpaul#ifdef RPC_HDR
7126208Swpaul%#include <sys/cdefs.h>
7226208Swpaul%extern int _yppasswd __P(( char * , struct x_passwd * ));
7326208Swpaul%#define yppasswd(x,y) _yppasswd(x,y)
7426208Swpaul#endif
75