yppasswd_private.x revision 27758
114062Swpaul/*
214062Swpaul * Copyright (c) 1995, 1996
314062Swpaul *	Bill Paul <wpaul@ctr.columbia.edu>.  All rights reserved.
414062Swpaul *
514062Swpaul * Redistribution and use in source and binary forms, with or without
614062Swpaul * modification, are permitted provided that the following conditions
714062Swpaul * are met:
814062Swpaul * 1. Redistributions of source code must retain the above copyright
914062Swpaul *    notice, this list of conditions and the following disclaimer.
1014062Swpaul * 2. Redistributions in binary form must reproduce the above copyright
1114062Swpaul *    notice, this list of conditions and the following disclaimer in the
1214062Swpaul *    documentation and/or other materials provided with the distribution.
1314062Swpaul * 3. All advertising materials mentioning features or use of this software
1414062Swpaul *    must display the following acknowledgement:
1514062Swpaul *	This product includes software developed by Bill Paul.
1614062Swpaul * 4. Neither the name of the author nor the names of any co-contributors
1714062Swpaul *    may be used to endorse or promote products derived from this software
1814062Swpaul *    without specific prior written permission.
1914062Swpaul *
2014062Swpaul * THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
2114062Swpaul * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2214062Swpaul * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2314062Swpaul * ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR CONTRIBUTORS BE LIABLE
2414062Swpaul * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2514062Swpaul * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2614062Swpaul * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2714062Swpaul * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2814062Swpaul * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2914062Swpaul * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3014062Swpaul * SUCH DAMAGE.
3114062Swpaul *
3227758Swpaul *	$Id: yppasswd_private.x,v 1.2 1997/07/28 18:31:11 wpaul Exp $
3314062Swpaul */
3414062Swpaul
3514062Swpaul#ifndef RPC_HDR
3614062Swpaul%#ifndef lint
3727758Swpaul%static const char rcsid[] = "$Id: yppasswd_private.x,v 1.2 1997/07/28 18:31:11 wpaul Exp $";
3814062Swpaul%#endif /* not lint */
3914062Swpaul#endif
4014062Swpaul
4127758Swpaul#ifdef RPC_HDR
4227758Swpaul%#define YP_SOCKNAME	"/var/run/yppasswdsock"
4327758Swpaul#endif
4414062Swpaul
4514062Swpaulstruct x_master_passwd {
4614062Swpaul	string pw_name<>;	/* username */
4714062Swpaul	string pw_passwd<>;	/* encrypted password */
4814062Swpaul	int pw_uid;		/* user id */
4914062Swpaul	int pw_gid;		/* group id */
5014062Swpaul	unsigned long pw_change;/* password change time */
5114062Swpaul	string pw_class<>;	/* user access class */
5214062Swpaul	string pw_gecos<>;	/* in real life name */
5314062Swpaul	string pw_dir<>;	/* home directory */
5414062Swpaul	string pw_shell<>;	/* default shell */
5514062Swpaul	unsigned long pw_expire;/* account expiration */
5614062Swpaul	unsigned long pw_fields;/* internal: fields filled in */
5714062Swpaul};
5814062Swpaul
5914062Swpaulconst _YPMAXDOMAIN = 64;
6014062Swpaul
6114062Swpaulstruct master_yppasswd {
6214062Swpaul	string oldpass<>;		/* unencrypted old password */
6314062Swpaul	string domain<_YPMAXDOMAIN>;	/* domain we want to operate on */
6414062Swpaul	x_master_passwd newpw;		/* new passwd entry */
6514062Swpaul};
6627758Swpaul
6727758Swpaul
6827758Swpaulprogram MASTER_YPPASSWDPROG {
6927758Swpaul	version MASTER_YPPASSWDVERS {
7027758Swpaul		int
7127758Swpaul		YPPASSWDPROC_UPDATE_MASTER(master_yppasswd) = 1;
7227758Swpaul	} = 1;
7327758Swpaul} = 600100009;
74