summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.yppasswdd/yppasswdd_extern.h
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-06-05 06:13:09 +0000
committerwpaul <wpaul@FreeBSD.org>1996-06-05 06:13:09 +0000
commit7afc9125751fe95b84e1ec3acae1592259cf0126 (patch)
tree627428a37ccfcc7fae695e0dfa4875af3910fcd1 /usr.sbin/rpc.yppasswdd/yppasswdd_extern.h
parent8bff27f555bec4f822274eae5ea7f7480cc44243 (diff)
downloadFreeBSD-src-7afc9125751fe95b84e1ec3acae1592259cf0126.zip
FreeBSD-src-7afc9125751fe95b84e1ec3acae1592259cf0126.tar.gz
Added support for in-place updates:
If rpc.yppasswdd is invoked with the -i flag, password changes will be made to the master.passwd template file and the hash map files in-place, which means it won't have to run a complete map update. Instead, it calls /var/yp/Makefile with the 'pushpw' target, which just pushes the maps to the slaves and runs yp_mkdb -c to tell the local ypserv to flush its database cache. The server will check the passwd.byname and passwd.byuid maps to see if they were built in 'insecure' or 'secure' mode (i.e. with real encrypted passwords in them or without) and update them accordingly. This combined with rpc.ypxfrd greatly reduces the amount of time it takes to complete an NIS password change, especially with very large passwd databases.
Diffstat (limited to 'usr.sbin/rpc.yppasswdd/yppasswdd_extern.h')
-rw-r--r--usr.sbin/rpc.yppasswdd/yppasswdd_extern.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/rpc.yppasswdd/yppasswdd_extern.h b/usr.sbin/rpc.yppasswdd/yppasswdd_extern.h
index 6c6885d..fa2deb6 100644
--- a/usr.sbin/rpc.yppasswdd/yppasswdd_extern.h
+++ b/usr.sbin/rpc.yppasswdd/yppasswdd_extern.h
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: yppasswdd_extern.h,v 1.5 1996/02/24 21:41:36 wpaul Exp $
+ * $Id: yppasswdd_extern.h,v 1.6 1996/06/03 03:22:36 wpaul Exp $
*/
#include <sys/types.h>
@@ -38,6 +38,9 @@
#include <rpc/rpc.h>
#include <pwd.h>
#include <err.h>
+#include <rpcsvc/yp.h>
+#include "yp_extern.h"
+#include "ypxfr_extern.h"
#ifndef YPLIBDIR
#define YPLIBDIR "/usr/libexec/"
@@ -66,9 +69,6 @@ extern int no_chfn;
extern int allow_additions;
extern int multidomain;
extern int resvport;
+extern int inplace;
extern int verbose;
extern int _rpc_dtablesize __P((void));
-extern void yp_error __P((const char *, ...));
-extern void load_securenets __P(( void ));
-extern int yp_access __P((const char *, const struct svc_req * ));
-extern int yp_get_record __P(( const char *, const char *, const DBT *, DBT *, int));
OpenPOWER on IntegriCloud