11832Swollman/* 21832Swollman * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 31832Swollman * unrestricted use provided that this legend is included on all tape 41832Swollman * media and as a part of the software program in whole or part. Users 51832Swollman * may copy or modify Sun RPC without charge, but are not authorized 61832Swollman * to license or distribute it to anyone else except as part of a product or 71832Swollman * program developed by the user. 81832Swollman * 91832Swollman * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 101832Swollman * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 111832Swollman * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 121832Swollman * 131832Swollman * Sun RPC is provided with no support and without any obligation on the 141832Swollman * part of Sun Microsystems, Inc. to assist in its use, correction, 151832Swollman * modification or enhancement. 161832Swollman * 171832Swollman * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 181832Swollman * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 191832Swollman * OR ANY PART THEREOF. 201832Swollman * 211832Swollman * In no event will Sun Microsystems, Inc. be liable for any lost revenue 221832Swollman * or profits or other special, indirect and consequential damages, even if 231832Swollman * Sun has been advised of the possibility of such damages. 241832Swollman * 251832Swollman * Sun Microsystems, Inc. 261832Swollman * 2550 Garcia Avenue 271832Swollman * Mountain View, California 94043 281832Swollman */ 291832Swollman 301832Swollman/* 311832Swollman * YP password update protocol 321832Swollman * Requires unix authentication 331832Swollman */ 341832Swollman 351832Swollman#ifndef RPC_HDR 361832Swollman%#ifndef lint 371832Swollman%/*static char sccsid[] = "from: @(#)yppasswd.x 1.1 87/04/13 Copyr 1987 Sun Micro";*/ 381832Swollman%/*static char sccsid[] = "from: @(#)yppasswd.x 2.1 88/08/01 4.0 RPCSRC";*/ 391832Swollman%#endif /* not lint */ 40114629Sobrien%#include <sys/cdefs.h> 41114629Sobrien%__FBSDID("$FreeBSD$"); 421832Swollman#endif 431832Swollman 441832Swollmanprogram YPPASSWDPROG { 451832Swollman version YPPASSWDVERS { 461832Swollman /* 471832Swollman * Update my passwd entry 481832Swollman */ 491832Swollman int 501832Swollman YPPASSWDPROC_UPDATE(yppasswd) = 1; 511832Swollman } = 1; 521832Swollman} = 100009; 531832Swollman 541832Swollman 551832Swollmanstruct x_passwd { 561832Swollman string pw_name<>; /* username */ 571832Swollman string pw_passwd<>; /* encrypted password */ 581832Swollman int pw_uid; /* user id */ 591832Swollman int pw_gid; /* group id */ 601832Swollman string pw_gecos<>; /* in real life name */ 611832Swollman string pw_dir<>; /* home directory */ 621832Swollman string pw_shell<>; /* default shell */ 631832Swollman}; 641832Swollman 651832Swollmanstruct yppasswd { 661832Swollman string oldpass<>; /* unencrypted old password */ 671832Swollman x_passwd newpw; /* new passwd entry */ 681832Swollman}; 691832Swollman 701832Swollman 7126208Swpaul#ifdef RPC_HDR 7226208Swpaul%#include <sys/cdefs.h> 7393064Simp%extern int _yppasswd( char * , struct x_passwd * ); 7426208Swpaul%#define yppasswd(x,y) _yppasswd(x,y) 7526208Swpaul#endif 76