18256fad9SBill Paul /* 28256fad9SBill Paul * Copyright (c) 1995, 1996 38256fad9SBill Paul * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 48256fad9SBill Paul * 58256fad9SBill Paul * Redistribution and use in source and binary forms, with or without 68256fad9SBill Paul * modification, are permitted provided that the following conditions 78256fad9SBill Paul * are met: 88256fad9SBill Paul * 1. Redistributions of source code must retain the above copyright 98256fad9SBill Paul * notice, this list of conditions and the following disclaimer. 108256fad9SBill Paul * 2. Redistributions in binary form must reproduce the above copyright 118256fad9SBill Paul * notice, this list of conditions and the following disclaimer in the 128256fad9SBill Paul * documentation and/or other materials provided with the distribution. 138256fad9SBill Paul * 3. All advertising materials mentioning features or use of this software 148256fad9SBill Paul * must display the following acknowledgement: 158256fad9SBill Paul * This product includes software developed by Bill Paul. 168256fad9SBill Paul * 4. Neither the name of the author nor the names of any co-contributors 178256fad9SBill Paul * may be used to endorse or promote products derived from this software 188256fad9SBill Paul * without specific prior written permission. 198256fad9SBill Paul * 208256fad9SBill Paul * THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND 218256fad9SBill Paul * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 228256fad9SBill Paul * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 238256fad9SBill Paul * ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR CONTRIBUTORS BE LIABLE 248256fad9SBill Paul * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 258256fad9SBill Paul * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 268256fad9SBill Paul * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 278256fad9SBill Paul * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 288256fad9SBill Paul * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 298256fad9SBill Paul * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 308256fad9SBill Paul * SUCH DAMAGE. 318256fad9SBill Paul */ 328256fad9SBill Paul 338256fad9SBill Paul #ifndef RPC_HDR 34b728350eSDavid E. O'Brien %#include <sys/cdefs.h> 358256fad9SBill Paul #endif 368256fad9SBill Paul 371f922405SBill Paul #ifdef RPC_HDR 381f922405SBill Paul %#define YP_SOCKNAME "/var/run/yppasswdsock" 391f922405SBill Paul #endif 408256fad9SBill Paul 418256fad9SBill Paul struct x_master_passwd { 428256fad9SBill Paul string pw_name<>; /* username */ 438256fad9SBill Paul string pw_passwd<>; /* encrypted password */ 448256fad9SBill Paul int pw_uid; /* user id */ 458256fad9SBill Paul int pw_gid; /* group id */ 468256fad9SBill Paul unsigned long pw_change;/* password change time */ 478256fad9SBill Paul string pw_class<>; /* user access class */ 488256fad9SBill Paul string pw_gecos<>; /* in real life name */ 498256fad9SBill Paul string pw_dir<>; /* home directory */ 508256fad9SBill Paul string pw_shell<>; /* default shell */ 518256fad9SBill Paul unsigned long pw_expire;/* account expiration */ 528256fad9SBill Paul unsigned long pw_fields;/* internal: fields filled in */ 538256fad9SBill Paul }; 548256fad9SBill Paul 558256fad9SBill Paul const _YPMAXDOMAIN = 64; 568256fad9SBill Paul 578256fad9SBill Paul struct master_yppasswd { 588256fad9SBill Paul string oldpass<>; /* unencrypted old password */ 598256fad9SBill Paul string domain<_YPMAXDOMAIN>; /* domain we want to operate on */ 608256fad9SBill Paul x_master_passwd newpw; /* new passwd entry */ 618256fad9SBill Paul }; 621f922405SBill Paul 631f922405SBill Paul 641f922405SBill Paul program MASTER_YPPASSWDPROG { 651f922405SBill Paul version MASTER_YPPASSWDVERS { 661f922405SBill Paul int 671f922405SBill Paul YPPASSWDPROC_UPDATE_MASTER(master_yppasswd) = 1; 681f922405SBill Paul } = 1; 691f922405SBill Paul } = 600100009; 70