yppasswdd_extern.h revision 16134
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 * 3216134Swpaul * $Id: yppasswdd_extern.h,v 1.6 1996/06/03 03:22:36 wpaul Exp $ 3314062Swpaul */ 3414062Swpaul 3514062Swpaul#include <sys/types.h> 3614062Swpaul#include <limits.h> 3714062Swpaul#include <db.h> 3814062Swpaul#include <rpc/rpc.h> 3914062Swpaul#include <pwd.h> 4014062Swpaul#include <err.h> 4116134Swpaul#include <rpcsvc/yp.h> 4216134Swpaul#include "yp_extern.h" 4316134Swpaul#include "ypxfr_extern.h" 4414062Swpaul 4514062Swpaul#ifndef YPLIBDIR 4614062Swpaul#define YPLIBDIR "/usr/libexec/" 4714062Swpaul#endif 4814062Swpaul#define MAP_UPDATE "yppwupdate" 4914062Swpaul#define MAP_UPDATE_PATH YPLIBDIR "yppwupdate" 5014062Swpaul 5114062Swpaulextern char *yp_dir; 5214062Swpaulextern char *progname; 5314062Swpaulextern void do_master __P(( void )); 5414062Swpaulextern void yppasswdprog_1 __P(( struct svc_req *, register SVCXPRT * )); 5514062Swpaulextern void reaper __P(( int )); 5614062Swpaulextern void install_reaper __P(( int )); 5714062Swpaulextern int pw_copy __P(( int, int, struct passwd * )); 5814062Swpaulextern int pw_lock __P(( void )); 5914062Swpaulextern int pw_mkdb __P(( void )); 6014062Swpaulextern int pw_tmp __P(( void )); 6114062Swpaulextern void pw_init __P(( void )); 6214062Swpaulextern char *ok_shell __P (( char * )); 6314062Swpaulextern char *passfile; 6414062Swpaulextern char *passfile_default; 6514062Swpaulextern char *tempname; 6614062Swpaulextern char *yppasswd_domain; 6714062Swpaulextern int no_chsh; 6814062Swpaulextern int no_chfn; 6914062Swpaulextern int allow_additions; 7014062Swpaulextern int multidomain; 7114241Swpaulextern int resvport; 7216134Swpaulextern int inplace; 7314062Swpaulextern int verbose; 7414062Swpaulextern int _rpc_dtablesize __P((void)); 75