yppasswd.x revision 303975
1250323Sdteske/*-
2250323Sdteske * Copyright (c) 2010, Oracle America, Inc.
3250323Sdteske *
4252980Sdteske * Redistribution and use in source and binary forms, with or without
5250323Sdteske * modification, are permitted provided that the following conditions are
6250323Sdteske * met:
7250323Sdteske *
8250323Sdteske *     * Redistributions of source code must retain the above copyright
9250323Sdteske *       notice, this list of conditions and the following disclaimer.
10250323Sdteske *     * Redistributions in binary form must reproduce the above
11250323Sdteske *       copyright notice, this list of conditions and the following
12250323Sdteske *       disclaimer in the documentation and/or other materials
13250323Sdteske *       provided with the distribution.
14250323Sdteske *     * Neither the name of the "Oracle America, Inc." nor the names of its
15250323Sdteske *       contributors may be used to endorse or promote products derived
16252987Sdteske *       from this software without specific prior written permission.
17250323Sdteske *
18250323Sdteske *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19250323Sdteske *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20252987Sdteske *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21250323Sdteske *   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22250323Sdteske *   COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
23250323Sdteske *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24250323Sdteske *   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
25250323Sdteske *   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26250323Sdteske *   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27250323Sdteske *   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28250323Sdteske *   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29250323Sdteske *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30250323Sdteske */
31250323Sdteske
32250323Sdteske/*
33250323Sdteske * YP password update protocol
34250323Sdteske * Requires unix authentication
35252745Sdteske */
36252745Sdteske
37250323Sdteske#ifndef RPC_HDR
38250323Sdteske%#ifndef lint
39252077Sdteske%/*static char sccsid[] = "from: @(#)yppasswd.x 1.1 87/04/13 Copyr 1987 Sun Micro";*/
40250323Sdteske%/*static char sccsid[] = "from: @(#)yppasswd.x	2.1 88/08/01 4.0 RPCSRC";*/
41250323Sdteske%#endif /* not lint */
42250323Sdteske%#include <sys/cdefs.h>
43250323Sdteske%__FBSDID("$FreeBSD: releng/11.0/include/rpcsvc/yppasswd.x 259117 2013-12-09 04:26:50Z hrs $");
44250323Sdteske#endif
45250323Sdteske
46250323Sdteskeprogram YPPASSWDPROG {
47250323Sdteske	version YPPASSWDVERS {
48250323Sdteske		/*
49250323Sdteske		 * Update my passwd entry
50250323Sdteske		 */
51250323Sdteske		int
52250323Sdteske		YPPASSWDPROC_UPDATE(yppasswd) = 1;
53252740Sdteske	} = 1;
54252745Sdteske} = 100009;
55252745Sdteske
56252745Sdteske
57252745Sdteskestruct x_passwd {
58252745Sdteske	string pw_name<>;	/* username */
59252740Sdteske	string pw_passwd<>;	/* encrypted password */
60252740Sdteske	int pw_uid;		/* user id */
61252745Sdteske	int pw_gid;		/* group id */
62252740Sdteske	string pw_gecos<>;	/* in real life name */
63252740Sdteske	string pw_dir<>;	/* home directory */
64250323Sdteske	string pw_shell<>;	/* default shell */
65250323Sdteske};
66250323Sdteske
67250323Sdteskestruct yppasswd {
68250323Sdteske	string oldpass<>;	/* unencrypted old password */
69250323Sdteske	x_passwd newpw;		/* new passwd entry */
70250323Sdteske};
71250323Sdteske
72250323Sdteske
73250323Sdteske#ifdef RPC_HDR
74250323Sdteske%#include <sys/cdefs.h>
75250323Sdteske%extern int _yppasswd( char * , struct x_passwd * );
76250323Sdteske%#define yppasswd(x,y) _yppasswd(x,y)
77250323Sdteske#endif
78250323Sdteske