yppasswd_private.x revision 14062
11556Srgrimes/*
21556Srgrimes * Copyright (c) 1995, 1996
31556Srgrimes *	Bill Paul <wpaul@ctr.columbia.edu>.  All rights reserved.
41556Srgrimes *
51556Srgrimes * Redistribution and use in source and binary forms, with or without
61556Srgrimes * modification, are permitted provided that the following conditions
71556Srgrimes * are met:
81556Srgrimes * 1. Redistributions of source code must retain the above copyright
91556Srgrimes *    notice, this list of conditions and the following disclaimer.
101556Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
111556Srgrimes *    notice, this list of conditions and the following disclaimer in the
121556Srgrimes *    documentation and/or other materials provided with the distribution.
131556Srgrimes * 3. All advertising materials mentioning features or use of this software
141556Srgrimes *    must display the following acknowledgement:
151556Srgrimes *	This product includes software developed by Bill Paul.
161556Srgrimes * 4. Neither the name of the author nor the names of any co-contributors
171556Srgrimes *    may be used to endorse or promote products derived from this software
181556Srgrimes *    without specific prior written permission.
191556Srgrimes *
201556Srgrimes * THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
211556Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
221556Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
231556Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR CONTRIBUTORS BE LIABLE
241556Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
251556Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
261556Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
271556Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
281556Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
291556Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
301556Srgrimes * SUCH DAMAGE.
311556Srgrimes *
321556Srgrimes *	$Id: yppasswd_private.x,v 1.2 1996/01/25 16:14:48 wpaul Exp $
331556Srgrimes */
341556Srgrimes
351556Srgrimes#ifndef RPC_HDR
361556Srgrimes%#ifndef lint
371556Srgrimes%static const char rcsid[] = "$Id: yppasswd_private.x,v 1.2 1996/01/25 16:14:48 wpaul Exp $";
3836150Scharnier%#endif /* not lint */
3936150Scharnier#endif
4036150Scharnier
4136150Scharnier/*
4250471Speter * This protocol definition file is only used to
431556Srgrimes * generate some XDR functions. We don't actually
441556Srgrimes * define any RPC services here.
451556Srgrimes */
4646684Skris
471556Srgrimesstruct x_master_passwd {
481556Srgrimes	string pw_name<>;	/* username */
4917987Speter	string pw_passwd<>;	/* encrypted password */
5017987Speter	int pw_uid;		/* user id */
5117987Speter	int pw_gid;		/* group id */
5217987Speter	unsigned long pw_change;/* password change time */
5317987Speter	string pw_class<>;	/* user access class */
5417987Speter	string pw_gecos<>;	/* in real life name */
5518016Speter	string pw_dir<>;	/* home directory */
5618018Speter	string pw_shell<>;	/* default shell */
5738536Scracauer	unsigned long pw_expire;/* account expiration */
5829983Smsmith	unsigned long pw_fields;/* internal: fields filled in */
5917987Speter};
601556Srgrimes
611556Srgrimesconst _YPMAXDOMAIN = 64;
621556Srgrimes
631556Srgrimesstruct master_yppasswd {
641556Srgrimes	string oldpass<>;		/* unencrypted old password */
651556Srgrimes	string domain<_YPMAXDOMAIN>;	/* domain we want to operate on */
661556Srgrimes	x_master_passwd newpw;		/* new passwd entry */
671556Srgrimes};
681556Srgrimes