Home | History | Annotate | Line # | Download | only in librpcsvc
      1  1.1     jtc /*
      2  1.1     jtc  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
      3  1.1     jtc  * unrestricted use provided that this legend is included on all tape
      4  1.1     jtc  * media and as a part of the software program in whole or part.  Users
      5  1.1     jtc  * may copy or modify Sun RPC without charge, but are not authorized
      6  1.1     jtc  * to license or distribute it to anyone else except as part of a product or
      7  1.1     jtc  * program developed by the user.
      8  1.5  simonb  *
      9  1.1     jtc  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
     10  1.1     jtc  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
     11  1.1     jtc  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
     12  1.5  simonb  *
     13  1.1     jtc  * Sun RPC is provided with no support and without any obligation on the
     14  1.1     jtc  * part of Sun Microsystems, Inc. to assist in its use, correction,
     15  1.1     jtc  * modification or enhancement.
     16  1.5  simonb  *
     17  1.1     jtc  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
     18  1.1     jtc  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
     19  1.1     jtc  * OR ANY PART THEREOF.
     20  1.5  simonb  *
     21  1.1     jtc  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
     22  1.1     jtc  * or profits or other special, indirect and consequential damages, even if
     23  1.1     jtc  * Sun has been advised of the possibility of such damages.
     24  1.5  simonb  *
     25  1.1     jtc  * Sun Microsystems, Inc.
     26  1.1     jtc  * 2550 Garcia Avenue
     27  1.1     jtc  * Mountain View, California  94043
     28  1.1     jtc  */
     29  1.1     jtc 
     30  1.1     jtc /*
     31  1.1     jtc  * YP password update protocol
     32  1.1     jtc  * Requires unix authentication
     33  1.1     jtc  */
     34  1.1     jtc 
     35  1.1     jtc #ifndef RPC_HDR
     36  1.4   lukem %#include <sys/cdefs.h>
     37  1.6  kleink %#ifndef __lint__
     38  1.1     jtc %/*static char sccsid[] = "from: @(#)yppasswd.x 1.1 87/04/13 Copyr 1987 Sun Micro";*/
     39  1.1     jtc %/*static char sccsid[] = "from: @(#)yppasswd.x	2.1 88/08/01 4.0 RPCSRC";*/
     40  1.6  kleink %__RCSID("$NetBSD: yppasswd.x,v 1.6 2004/07/01 22:52:34 kleink Exp $");
     41  1.6  kleink %#endif /* not __lint__ */
     42  1.1     jtc #endif
     43  1.1     jtc 
     44  1.1     jtc struct x_passwd {
     45  1.1     jtc 	string pw_name<>;	/* username */
     46  1.1     jtc 	string pw_passwd<>;	/* encrypted password */
     47  1.1     jtc 	int pw_uid;		/* user id */
     48  1.1     jtc 	int pw_gid;		/* group id */
     49  1.1     jtc 	string pw_gecos<>;	/* in real life name */
     50  1.1     jtc 	string pw_dir<>;	/* home directory */
     51  1.1     jtc 	string pw_shell<>;	/* default shell */
     52  1.1     jtc };
     53  1.1     jtc 
     54  1.1     jtc struct yppasswd {
     55  1.1     jtc 	string oldpass<>;	/* unencrypted old password */
     56  1.1     jtc 	x_passwd newpw;		/* new passwd entry */
     57  1.1     jtc };
     58  1.1     jtc 
     59  1.3   mikel program YPPASSWDPROG {
     60  1.3   mikel 	version YPPASSWDVERS {
     61  1.3   mikel 		/*
     62  1.5  simonb 		 * Update my passwd entry
     63  1.3   mikel 		 */
     64  1.3   mikel 		int
     65  1.3   mikel 		YPPASSWDPROC_UPDATE(yppasswd) = 1;
     66  1.3   mikel 	} = 1;
     67  1.3   mikel } = 100009;
     68