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 3314062Swpaul#ifndef RPC_HDR 34114601Sobrien%#include <sys/cdefs.h> 35114601Sobrien%__FBSDID("$FreeBSD$"); 3614062Swpaul#endif 3714062Swpaul 3827758Swpaul#ifdef RPC_HDR 3927758Swpaul%#define YP_SOCKNAME "/var/run/yppasswdsock" 4027758Swpaul#endif 4114062Swpaul 4214062Swpaulstruct x_master_passwd { 4314062Swpaul string pw_name<>; /* username */ 4414062Swpaul string pw_passwd<>; /* encrypted password */ 4514062Swpaul int pw_uid; /* user id */ 4614062Swpaul int pw_gid; /* group id */ 4714062Swpaul unsigned long pw_change;/* password change time */ 4814062Swpaul string pw_class<>; /* user access class */ 4914062Swpaul string pw_gecos<>; /* in real life name */ 5014062Swpaul string pw_dir<>; /* home directory */ 5114062Swpaul string pw_shell<>; /* default shell */ 5214062Swpaul unsigned long pw_expire;/* account expiration */ 5314062Swpaul unsigned long pw_fields;/* internal: fields filled in */ 5414062Swpaul}; 5514062Swpaul 5614062Swpaulconst _YPMAXDOMAIN = 64; 5714062Swpaul 5814062Swpaulstruct master_yppasswd { 5914062Swpaul string oldpass<>; /* unencrypted old password */ 6014062Swpaul string domain<_YPMAXDOMAIN>; /* domain we want to operate on */ 6114062Swpaul x_master_passwd newpw; /* new passwd entry */ 6214062Swpaul}; 6327758Swpaul 6427758Swpaul 6527758Swpaulprogram MASTER_YPPASSWDPROG { 6627758Swpaul version MASTER_YPPASSWDVERS { 6727758Swpaul int 6827758Swpaul YPPASSWDPROC_UPDATE_MASTER(master_yppasswd) = 1; 6927758Swpaul } = 1; 7027758Swpaul} = 600100009; 71