yppasswd_private.x revision 14062
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 *
3214062Swpaul *	$Id: yppasswd_private.x,v 1.2 1996/01/25 16:14:48 wpaul Exp $
3314062Swpaul */
3414062Swpaul
3514062Swpaul#ifndef RPC_HDR
3614062Swpaul%#ifndef lint
3714062Swpaul%static const char rcsid[] = "$Id: yppasswd_private.x,v 1.2 1996/01/25 16:14:48 wpaul Exp $";
3814062Swpaul%#endif /* not lint */
3914062Swpaul#endif
4014062Swpaul
4114062Swpaul/*
4214062Swpaul * This protocol definition file is only used to
4314062Swpaul * generate some XDR functions. We don't actually
4414062Swpaul * define any RPC services here.
4514062Swpaul */
4614062Swpaul
4714062Swpaulstruct x_master_passwd {
4814062Swpaul	string pw_name<>;	/* username */
4914062Swpaul	string pw_passwd<>;	/* encrypted password */
5014062Swpaul	int pw_uid;		/* user id */
5114062Swpaul	int pw_gid;		/* group id */
5214062Swpaul	unsigned long pw_change;/* password change time */
5314062Swpaul	string pw_class<>;	/* user access class */
5414062Swpaul	string pw_gecos<>;	/* in real life name */
5514062Swpaul	string pw_dir<>;	/* home directory */
5614062Swpaul	string pw_shell<>;	/* default shell */
5714062Swpaul	unsigned long pw_expire;/* account expiration */
5814062Swpaul	unsigned long pw_fields;/* internal: fields filled in */
5914062Swpaul};
6014062Swpaul
6114062Swpaulconst _YPMAXDOMAIN = 64;
6214062Swpaul
6314062Swpaulstruct master_yppasswd {
6414062Swpaul	string oldpass<>;		/* unencrypted old password */
6514062Swpaul	string domain<_YPMAXDOMAIN>;	/* domain we want to operate on */
6614062Swpaul	x_master_passwd newpw;		/* new passwd entry */
6714062Swpaul};
68