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