summaryrefslogtreecommitdiffstats
path: root/src/admin/stash
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>1996-08-24 00:46:52 +0000
committerEzra Peisach <epeisach@mit.edu>1996-08-24 00:46:52 +0000
commit73700efbb5968d21b92f7dafa153e79a10094ccb (patch)
tree66790aee50958422384b73e7a1341321745d5b4b /src/admin/stash
parente7a959caf3b47b3e0277e685a8bd88ba06bcc613 (diff)
downloadkrb5-73700efbb5968d21b92f7dafa153e79a10094ccb.tar.gz
krb5-73700efbb5968d21b92f7dafa153e79a10094ccb.tar.xz
krb5-73700efbb5968d21b92f7dafa153e79a10094ccb.zip
Removing programs which are now in the new OV admin system
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8980 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/admin/stash')
-rw-r--r--src/admin/stash/.Sanitize38
-rw-r--r--src/admin/stash/ChangeLog77
-rw-r--r--src/admin/stash/Makefile.in13
-rw-r--r--src/admin/stash/configure.in8
-rw-r--r--src/admin/stash/kdb5_stash.M97
-rw-r--r--src/admin/stash/kdb5_stash.c204
6 files changed, 0 insertions, 437 deletions
diff --git a/src/admin/stash/.Sanitize b/src/admin/stash/.Sanitize
deleted file mode 100644
index dc96baff7..000000000
--- a/src/admin/stash/.Sanitize
+++ /dev/null
@@ -1,38 +0,0 @@
-# Sanitize.in for Kerberos V5
-
-# Each directory to survive it's way into a release will need a file
-# like this one called "./.Sanitize". All keyword lines must exist,
-# and must exist in the order specified by this file. Each directory
-# in the tree will be processed, top down, in the following order.
-
-# Hash started lines like this one are comments and will be deleted
-# before anything else is done. Blank lines will also be squashed
-# out.
-
-# The lines between the "Do-first:" line and the "Things-to-keep:"
-# line are executed as a /bin/sh shell script before anything else is
-# done in this
-
-Do-first:
-
-# All files listed between the "Things-to-keep:" line and the
-# "Files-to-sed:" line will be kept. All other files will be removed.
-# Directories listed in this section will have their own Sanitize
-# called. Directories not listed will be removed in their entirety
-# with rm -rf.
-
-Things-to-keep:
-
-.cvsignore
-ChangeLog
-Makefile.in
-configure
-configure.in
-kdb5_stash.M
-kdb5_stash.c
-
-Things-to-lose:
-
-Do-last:
-
-# End of file.
diff --git a/src/admin/stash/ChangeLog b/src/admin/stash/ChangeLog
deleted file mode 100644
index a2f6d89b4..000000000
--- a/src/admin/stash/ChangeLog
+++ /dev/null
@@ -1,77 +0,0 @@
-Sun May 12 01:16:49 1996 Marc Horowitz <marc@mit.edu>
-
- * configure.in: USE_KADM_LIBRARY replaced by USE_KADMSRV_LIBRARY
-
-Wed Sep 06 14:20:57 1995 Chris Provenzano (proven@mit.edu)
-
- * kdb5_stash.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
-
-Tue Sep 05 22:10:34 1995 Chris Provenzano (proven@mit.edu)
-
- * kdb5_stash.c : Remove krb5_enctype references, and replace with
- krb5_keytype where appropriate.
-
-Mon Aug 21 16:48:01 EDT 1995 Paul Park (pjpark@mit.edu)
- * kdb5_stash.M - Remove "ascii representation of a decimal number".
-
-
-Mon Jul 31 15:49:17 EDT 1995 Paul Park (pjpark@mit.edu)
- * kdb5_stash.c - Use kadm string conversion routines.
-
-
-Mon Jul 17 15:02:29 EDT 1995 Paul Park (pjpark@mit.edu)
- * configure.in - Add KADM library.
- * kdb5_stash.c - Change calling sequence to krb5_db_fetch_mkey(). Add
- KDC profile reading/handling as a supplement to command line
- arguments.
-
-
-Fri Jul 7 15:38:50 EDT 1995 Paul Park (pjpark@mit.edu)
- * Makefile.in - Remove all explicit library handling and LDFLAGS.
- * configure.in - Add USE_KDB5_LIBRARY and KRB5_LIBRARIES.
-
-
-Fri Jun 30 14:31:23 EDT 1995 Paul Park (pjpark@mit.edu)
- * configure.in - Add --with-dbm to select between Berkeley and DBM
- KDC database format.
-
-
-Thu Jun 15 15:35:39 EDT 1995 Paul Park (pjpark@mit.edu)
- * Makefile.in - Change explicit library names to -l<lib> form, and
- change target link line to use $(LD) and associated flags.
- * configure.in - Add shared library usage check.
-
-Fri Jun 9 18:16:17 1995 <tytso@rsx-11.mit.edu>
-
- * configure.in: Remove standardized set of autoconf macros, which
- are now handled by CONFIG_RULES.
-
-Thu Mar 2 13:03:01 1995 Theodore Y. Ts'o <tytso@dcl>
-
- * Makefile.in (ISODELIB): Remove reference to $(ISODELIB).
-
-Wed Mar 1 11:53:29 1995 Theodore Y. Ts'o <tytso@dcl>
-
- * configure.in: Remove ISODE_INCLUDE, replace check for -lsocket
- and -lnsl with WITH_NETLIB check.
-
-Tue Feb 28 02:08:04 1995 John Gilmore (gnu at toad.com)
-
- * kdb5_stach.c: Avoid <krb5/...> and <com_err.h> includes.
-
-Fri Jan 13 15:23:47 1995 Chris Provenzano (proven@mit.edu)
-
- * Added krb5_context to all krb5_routines
-
-Mon Oct 3 19:11:08 1994 Theodore Y. Ts'o (tytso@dcl)
-
- * Makefile.in: Use $(srcdir) to find manual page for make install.
-
-Thu Sep 29 22:20:51 1994 Theodore Y. Ts'o (tytso@dcl)
-
- * Makefile.in: Relink executable when libraries change.
-
-Wed Jun 29 00:23:09 1994 Tom Yu (tlyu at dragons-lair)
-
- * kdb5_stash.c: fix things that should have been krb5_init_ets
-
diff --git a/src/admin/stash/Makefile.in b/src/admin/stash/Makefile.in
deleted file mode 100644
index d98dd1ffa..000000000
--- a/src/admin/stash/Makefile.in
+++ /dev/null
@@ -1,13 +0,0 @@
-CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE)
-
-all:: kdb5_stash
-
-kdb5_stash: kdb5_stash.o $(DEPLIBS)
- $(LD) $(LDFLAGS) $(LDARGS) -o kdb5_stash kdb5_stash.o $(LIBS)
-
-install::
- $(INSTALL_PROGRAM) kdb5_stash ${DESTDIR}$(ADMIN_BINDIR)/kdb5_stash
- $(INSTALL_DATA) $(srcdir)/kdb5_stash.M ${DESTDIR}$(ADMIN_MANDIR)/kdb5_stash.8
-
-clean::
- $(RM) kdb5_stash kdb5_stash.o
diff --git a/src/admin/stash/configure.in b/src/admin/stash/configure.in
deleted file mode 100644
index 1cd10cdb5..000000000
--- a/src/admin/stash/configure.in
+++ /dev/null
@@ -1,8 +0,0 @@
-AC_INIT(kdb5_stash.c)
-CONFIG_RULES
-AC_PROG_INSTALL
-USE_KADMSRV_LIBRARY
-USE_KDB5_LIBRARY
-KRB5_LIBRARIES
-V5_USE_SHARED_LIB
-V5_AC_OUTPUT_MAKEFILE
diff --git a/src/admin/stash/kdb5_stash.M b/src/admin/stash/kdb5_stash.M
deleted file mode 100644
index c34122e04..000000000
--- a/src/admin/stash/kdb5_stash.M
+++ /dev/null
@@ -1,97 +0,0 @@
-.\" admin/stash/kdb5_stash.M
-.\"
-.\" Copyright 1990 by the Massachusetts Institute of Technology.
-.\"
-.\" Export of this software from the United States of America may
-.\" require a specific license from the United States Government.
-.\" It is the responsibility of any person or organization contemplating
-.\" export to obtain such a license before exporting.
-.\"
-.\" WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
-.\" distribute this software and its documentation for any purpose and
-.\" without fee is hereby granted, provided that the above copyright
-.\" notice appear in all copies and that both that copyright notice and
-.\" this permission notice appear in supporting documentation, and that
-.\" the name of M.I.T. not be used in advertising or publicity pertaining
-.\" to distribution of the software without specific, written prior
-.\" permission. M.I.T. makes no representations about the suitability of
-.\" this software for any purpose. It is provided "as is" without express
-.\" or implied warranty.
-.\"
-.\"
-.TH KDB5_STASH 8 "Kerberos Version 5.0" "MIT Project Athena"
-.SH NAME
-kdb5_stash \- store a principal database master key on disk
-.SH SYNOPSIS
-.B kdb5_stash
-[
-.B \-r
-.I realm
-] [
-.B \-d
-.I dbname
-] [
-.B \-k
-.I keytype
-] [
-.B \-M
-.I mkeyname
-] [
-.B \-e
-.I enctype
-] [
-.B \-f
-.I keyfile
-]
-.br
-.SH DESCRIPTION
-.I kdb5_stash
-stores a Kerberos principal database master key in a file;
-this key may subsequently be used for unattended re-start of a Kerberos
-V5 KDC.
-The user is prompted for the master password, which will be verified
-against the database, and then stored in a file.
-.PP
-The
-.B \-r
-.I realm
-option specifies the realm for which the database key should be stored;
-by default the realm returned by
-.IR krb5_default_local_realm (3)
-is used.
-.PP
-The
-.B \-d
-.I dbname
-option specifies the name under which the principal database is
-stored; by default the database is in DEFAULT_DBM_FILE (normally
-/krb5/principal).
-.PP
-The
-.B \-k
-.I keytype
-option specifies the key type of the master key in the database; the default
-is KEYTYPE_DES.
-.PP
-The
-.B \-M
-.I mkeyname
-option specifies the principal name for the master key in the database;
-the default is KRB5_KDB_M_NAME (usually "K/M" in the KDC's realm).
-.PP
-The
-.B \-e
-.I enctype
-option specifies the encryption type used for entries in the database; the
-default is the default encryption type for the master keytype.
-.PP
-The
-.B \-f
-option specifies the file in which the master key should be stored; the
-default is DEFAULT_KEYFILE_STUB ("/.k5." concatenated with the realm name).
-.SH SEE ALSO
-krb5(3), krb5kdc(8), kdb5_create(8)
-.SH BUGS
-Allows an intruder to gain access to the entire database if the security
-of the KDC system is breached.
-
diff --git a/src/admin/stash/kdb5_stash.c b/src/admin/stash/kdb5_stash.c
deleted file mode 100644
index fdffa737b..000000000
--- a/src/admin/stash/kdb5_stash.c
+++ /dev/null
@@ -1,204 +0,0 @@
-/*
- * admin/stash/kdb5_stash.c
- *
- * Copyright 1990 by the Massachusetts Institute of Technology.
- * All Rights Reserved.
- *
- * Export of this software from the United States of America may
- * require a specific license from the United States Government.
- * It is the responsibility of any person or organization contemplating
- * export to obtain such a license before exporting.
- *
- * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
- * distribute this software and its documentation for any purpose and
- * without fee is hereby granted, provided that the above copyright
- * notice appear in all copies and that both that copyright notice and
- * this permission notice appear in supporting documentation, and that
- * the name of M.I.T. not be used in advertising or publicity pertaining
- * to distribution of the software without specific, written prior
- * permission. M.I.T. makes no representations about the suitability of
- * this software for any purpose. It is provided "as is" without express
- * or implied warranty.
- *
- *
- * Store the master database key in a file.
- */
-
-#include "k5-int.h"
-#include "com_err.h"
-#include "adm.h"
-#include "adm_proto.h"
-#include <stdio.h>
-
-extern int errno;
-
-krb5_keyblock master_keyblock;
-krb5_principal master_princ;
-krb5_encrypt_block master_encblock;
-
-static void
-usage(who, status)
-char *who;
-int status;
-{
- fprintf(stderr, "usage: %s [-d dbpathname] [-r realmname] [-k enctype]\n\
-\t[-M mkeyname] [-f keyfile]\n",
- who);
- exit(status);
-}
-
-
-void
-main(argc, argv)
-int argc;
-char *argv[];
-{
- extern char *optarg;
- int optchar;
- krb5_error_code retval;
- char *dbname = (char *) NULL;
- char *realm = 0;
- char *mkey_name = 0;
- char *mkey_fullname;
- char *keyfile = 0;
- krb5_context context;
- krb5_realm_params *rparams;
-
- int enctypedone = 0;
-
- if (strrchr(argv[0], '/'))
- argv[0] = strrchr(argv[0], '/')+1;
-
- krb5_init_context(&context);
- krb5_init_ets(context);
-
- while ((optchar = getopt(argc, argv, "d:r:k:M:e:f:")) != EOF) {
- switch(optchar) {
- case 'd': /* set db name */
- dbname = optarg;
- break;
- case 'r':
- realm = optarg;
- break;
- case 'k':
- if (!krb5_string_to_enctype(optarg, &master_keyblock.enctype))
- enctypedone++;
- else
- com_err(argv[0], 0, "%s is an invalid enctype", optarg);
- break;
- case 'M': /* master key name in DB */
- mkey_name = optarg;
- break;
- case 'f':
- keyfile = optarg;
- break;
- case '?':
- default:
- usage(argv[0], 1);
- /*NOTREACHED*/
- }
- }
-
- /*
- * Attempt to read the KDC profile. If we do, then read appropriate values
- * from it and augment values supplied on the command line.
- */
- if (!(retval = krb5_read_realm_params(context,
- realm,
- (char *) NULL,
- (char *) NULL,
- &rparams))) {
- /* Get the value for the database */
- if (rparams->realm_dbname && !dbname)
- dbname = strdup(rparams->realm_dbname);
-
- /* Get the value for the master key name */
- if (rparams->realm_mkey_name && !mkey_name)
- mkey_name = strdup(rparams->realm_mkey_name);
-
- /* Get the value for the master key type */
- if (rparams->realm_enctype_valid && !enctypedone) {
- master_keyblock.enctype = rparams->realm_enctype;
- enctypedone++;
- }
-
- /* Get the value for the stash file */
- if (rparams->realm_stash_file && !keyfile)
- keyfile = strdup(rparams->realm_stash_file);
-
- krb5_free_realm_params(context, rparams);
- }
-
- if (!dbname)
- dbname = DEFAULT_KDB_FILE;
-
- if (!enctypedone)
- master_keyblock.enctype = DEFAULT_KDC_ENCTYPE;
-
- if (!valid_enctype(master_keyblock.enctype)) {
- char tmp[32];
- if (krb5_enctype_to_string(master_keyblock.enctype, tmp, sizeof(tmp)))
- com_err(argv[0], KRB5_PROG_KEYTYPE_NOSUPP,
- "while setting up enctype %d", master_keyblock.enctype);
- else
- com_err(argv[0], KRB5_PROG_KEYTYPE_NOSUPP, tmp);
- exit(1);
- }
-
- krb5_use_enctype(context, &master_encblock, master_keyblock.enctype);
-
- if (retval = krb5_db_set_name(context, dbname)) {
- com_err(argv[0], retval, "while setting active database to '%s'",
- dbname);
- exit(1);
- }
- if (!realm) {
- if (retval = krb5_get_default_realm(context, &realm)) {
- com_err(argv[0], retval, "while retrieving default realm name");
- exit(1);
- }
- }
-
- /* assemble & parse the master key name */
-
- if (retval = krb5_db_setup_mkey_name(context, mkey_name, realm,
- &mkey_fullname, &master_princ)) {
- com_err(argv[0], retval, "while setting up master key name");
- exit(1);
- }
-
- if (retval = krb5_db_init(context)) {
- com_err(argv[0], retval, "while initializing the database '%s'",
- dbname);
- exit(1);
- }
-
- /* TRUE here means read the keyboard, but only once */
- if (retval = krb5_db_fetch_mkey(context, master_princ, &master_encblock,
- TRUE, FALSE, (char *) NULL,
- 0, &master_keyblock)) {
- com_err(argv[0], retval, "while reading master key");
- (void) krb5_db_fini(context);
- exit(1);
- }
- if (retval = krb5_db_verify_master_key(context, master_princ,
- &master_keyblock,&master_encblock)) {
- com_err(argv[0], retval, "while verifying master key");
- (void) krb5_db_fini(context);
- exit(1);
- }
- if (retval = krb5_db_store_mkey(context, keyfile, master_princ,
- &master_keyblock)) {
- com_err(argv[0], errno, "while storing key");
- memset((char *)master_keyblock.contents, 0, master_keyblock.length);
- (void) krb5_db_fini(context);
- exit(1);
- }
- memset((char *)master_keyblock.contents, 0, master_keyblock.length);
- if (retval = krb5_db_fini(context)) {
- com_err(argv[0], retval, "closing database '%s'", dbname);
- exit(1);
- }
-
- exit(0);
-}