summaryrefslogtreecommitdiffstats
path: root/src/admin
Commit message (Collapse)AuthorAgeFilesLines
* * kdb5_edit.c (extract_v4_srvtab): do not test to make sure weRichard Basch1996-03-203-86/+47
| | | | | | | | | | | | fetched a key of enctype 1 (des-cbc-crc), since we may have gotten another des key from the database, which is just as useful in a v4 srvtab * dumpv4.c (dump_v4_iterator): use krb5_524_conv_principal to do the v5 to v4 principal translation, instead of having yet another hard-coded table. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7668 dc483132-0cff-0310-8789-dd5450dbe970
* POSIX requires a file be opened read-write for lockingRichard Basch1996-03-061-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7597 dc483132-0cff-0310-8789-dd5450dbe970
* * dumpv4.c:Richard Basch1996-03-062-6/+78
| | | | | | | | | | | | | The V4 master key & schedule was never initialized, so the dump created by dump_v4db was garbage. Read the V4 master key from /.k or prompt for the V4 master key password. If there is no V4-salt key in the database, but there is a DES key, include it in the V4 dump, in case it is merely a random service key for which there is no associated password. Skip over K/M in the V5 database (use the entered V4 master key). Both krbtgt and afs keys often have domain-qualifed instances. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7596 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_edit.c: new command line option -f stashfile.Mark Eichin1996-03-053-15/+33
| | | | | | | | * kdb5_edit.M: document stashfile option. (also fixed some indentation, diff -w shows no difference.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7593 dc483132-0cff-0310-8789-dd5450dbe970
* now the keys actually *work* when you load an old dump (a real one,Mark Eichin1996-03-052-3/+15
| | | | | | | | | | | not the fake one the test case creates.) * dump.c (process_k5beta_record): since V4 salt type has no data either, only set key_data_ver to 1 for data_type 0 with 0-length salt. Also, don't include alternate key if akey has all-zero type and length in both fields. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7592 dc483132-0cff-0310-8789-dd5450dbe970
* With this change, lddb -old actually *works* on old dumps..Mark Eichin1996-02-252-1/+46
| | | | | | | | * dump.c (process_k5beta_record): encrypted keys used to have 4 byte lengths in MSB order, need to convert to 2 byte LSB order lengths before storing. Handle primary key and alternate key. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7534 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_edit.c (kdb5_edit_Init): set manual_mkey for testing with -PMark Eichin1996-02-232-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7504 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_edit.c (enter_master_key, set_dbname_help): If master keyEzra Peisach1996-02-142-11/+52
| | | | | | enctype is unknown, set to DEFAULT_KDC_ENCTYPE. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7478 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_edit.c (extract_v4_srvtab): krb5_dbekd_decrypt_key_dataEzra Peisach1996-02-132-2/+7
| | | | | | | | | takes krb5_key_data *, not **. Prototype warnings realy do mean potential errors. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7476 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c (load_db): dbrenerr_fmt prints "from" first, so pass itMark Eichin1996-01-302-1/+6
| | | | | | to fprintf correctly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7417 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c (process_k5_record): t2..t9 is only 8 vars, not 9Mark Eichin1996-01-282-1/+5
| | | | | | make check is useful, gang... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7412 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed extraction of keytabs to extract all keysSam Hartman1996-01-262-6/+38
| | | | | | | not just the first one. Fixed v4 extraction to find the v4 key. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7387 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Remove spurious @DEFS@Tom Yu1996-01-242-1/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7376 dc483132-0cff-0310-8789-dd5450dbe970
* Simplified to simply require the use of WITH_ANAME or USE_KDB5_LIBRARYRichard Basch1996-01-228-142/+5
| | | | | | to specify the need for dbm inclusion/testing/compilation flags. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7350 dc483132-0cff-0310-8789-dd5450dbe970
* Set the enctype to ENCTYPE_UNKNOWN when the enctype should be determined fromRichard Basch1996-01-111-2/+2
| | | | | | the stash file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7306 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c, dumpv4.c, kdb5_edit.c, loadv4.c :Chris Provenzano1995-12-135-15/+13
| | | | | | Remove mkvno from krb5_db_entry. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7215 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_create.c : Remove mkvno from krb5_db_entryChris Provenzano1995-12-132-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7214 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_edit.c: Use the master key enctype from the stash file if noneRichard Basch1995-12-121-11/+18
| | | | | | is specified (set the keyblock enctype to NULL). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7197 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_edit.M: Document that modent existsEzra Peisach1995-12-103-0/+30
| | | | | | * kdb5_edit.c (modent): Add usage as suggested by jhawk@mit.edu. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7188 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_edit.c : Remove krb5_enctype from krb5_string_to_key() argsChris Provenzano1995-11-092-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7077 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_create.c : Remove krb5_enctype from krb5_string_to_key() argsChris Provenzano1995-11-092-10/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7076 dc483132-0cff-0310-8789-dd5450dbe970
* remove rcs keyword cruft which doesn't make much sense in CVS.Mark Eichin1995-11-037-21/+13
| | | | | | | | removal simplifies merging. I left in the RCSID's that are in actual error table values (*_RCSID typically) but comments had them elided (Source keywords replaced with a literal pathname, Id totally removed.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7014 dc483132-0cff-0310-8789-dd5450dbe970
* When showing a principal with the "show" command, iterate through theRichard Basch1995-10-301-8/+27
| | | | | | keys, displaying the version number and type. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7004 dc483132-0cff-0310-8789-dd5450dbe970
* Fix off by one in malloc for reading in nameEzra Peisach1995-10-272-1/+5
| | | | | | | Detected only under Linux, found with purify, except when file compiled -g with suncc.... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7001 dc483132-0cff-0310-8789-dd5450dbe970
* Rather than displaying the master key version twice, display the actualRichard Basch1995-10-241-1/+1
| | | | | | | key version for the "Key version" field. (It only displays the version for the first key in the database.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6990 dc483132-0cff-0310-8789-dd5450dbe970
* Read the V4 Kerberos master key from /.k. Only prompt the user for theRichard Basch1995-10-241-2/+17
| | | | | | | V4 master key if the command-line option so indicates, or the key cannot be read from /.k. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6989 dc483132-0cff-0310-8789-dd5450dbe970
* Add new option 's' which automatically stashes the master key in theTheodore Tso1995-10-232-1/+26
| | | | | | | key stash file. This eliminates the need for the admin to type kdb5_stash right after kdb5_create. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6983 dc483132-0cff-0310-8789-dd5450dbe970
* extract_v4_srvtab: Version number is only one byte long (warlord)Ezra Peisach1995-10-092-2/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6950 dc483132-0cff-0310-8789-dd5450dbe970
* Move declaration of std_ks_tuple from kdb5_edit.h to cpw.c (extern part)Ezra Peisach1995-10-053-3/+9
| | | | | | as not all sources include adm.h for the necessary structures. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6926 dc483132-0cff-0310-8789-dd5450dbe970
* Use the kdc.conf file to determine the default list of keysalt tuplesTheodore Tso1995-10-044-18/+29
| | | | | | | to be used. This is stored in std_ks_tuple, and is used by cpw.c for random keys and when a list of keysalts is not specified. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6925 dc483132-0cff-0310-8789-dd5450dbe970
* Don't use krb5_lname_file; instead, use DEFAULT_LNAME_FILENAMETheodore Tso1995-09-292-2/+5
| | | | | | directly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6901 dc483132-0cff-0310-8789-dd5450dbe970
* kdb5_edit.c (show_principal): Show key version and last password changeEzra Peisach1995-09-183-3/+11
| | | | | | | cpw.c: Fix typo in below change in which list was terminated after third entry. (extra } removed) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6807 dc483132-0cff-0310-8789-dd5450dbe970
* Add DES_CBC_MD5 and DES_CBC_CRC with the V4 salt as default key/saltTheodore Tso1995-09-152-2/+16
| | | | | | | | tuples to be added. (Once proven's DES_* folding code is implemented, we can shorten this list.) Eventually, this list should be read in from kdc.conf. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6793 dc483132-0cff-0310-8789-dd5450dbe970
* (tgt_keysalt_iterate): Don't bash the master key encblock whenTheodore Tso1995-09-132-55/+98
| | | | | | | | | | | creating the various TGT keys. Otherwise, the keys end up getting encrypted using the wrong encryption algorithm. Initialize a new encblock, random_encblock, from the master key password. (main): Prompt for the master key password ourselves, and store it away so that it can be used by tgt_keysalt_iterate. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6783 dc483132-0cff-0310-8789-dd5450dbe970
* If V4 compatibility is not enabled, provide a dummy routine forEzra Peisach1995-09-082-1/+16
| | | | | | loading a v4 database. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6741 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_stash.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/gChris Provenzano1995-09-062-14/+17
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6699 dc483132-0cff-0310-8789-dd5450dbe970
* * cpw.c, dump.c, dumpv4.c, kdb5_edit.c, loadv4.c :Chris Provenzano1995-09-066-42/+46
| | | | | | s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6698 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_create.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/gChris Provenzano1995-09-062-17/+21
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6697 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_stash.c : Remove krb5_enctype references, and replace withChris Provenzano1995-09-062-26/+7
| | | | | | krb5_keytype where appropriate. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6663 dc483132-0cff-0310-8789-dd5450dbe970
* * cpw.c, dump.c, dumpv4.c, kdb5_edit.c, loadv4.c : Remove krb5_enctypeChris Provenzano1995-09-066-53/+47
| | | | | | references, and replace with krb5_keytype where appropriate. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6662 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_create.c : Remove krb5_enctype references, and replace withChris Provenzano1995-09-062-25/+8
| | | | | | krb5_keytype where appropriate. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6661 dc483132-0cff-0310-8789-dd5450dbe970
* Add v4 dump load logic from kdb5_convertPaul Park1995-08-255-1/+903
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6592 dc483132-0cff-0310-8789-dd5450dbe970
* Remove duplicated logicPaul Park1995-08-251-50/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6591 dc483132-0cff-0310-8789-dd5450dbe970
* Update file listTheodore Tso1995-08-242-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6588 dc483132-0cff-0310-8789-dd5450dbe970
* Update description of -k and -e flagsPaul Park1995-08-212-5/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6558 dc483132-0cff-0310-8789-dd5450dbe970
* Make new dump format text-based. Also add logic to read/write old formatPaul Park1995-08-212-250/+1593
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6557 dc483132-0cff-0310-8789-dd5450dbe970
* Add description of -s and -R. Update description of -e and -kPaul Park1995-08-211-9/+26
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6556 dc483132-0cff-0310-8789-dd5450dbe970
* Use symbolic names for keytype and enctypePaul Park1995-08-213-7/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6555 dc483132-0cff-0310-8789-dd5450dbe970
* Fix script handlingPaul Park1995-08-182-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6549 dc483132-0cff-0310-8789-dd5450dbe970
* Add support for -s scriptfile and fix gcc -Wall complaintsPaul Park1995-08-155-95/+176
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6521 dc483132-0cff-0310-8789-dd5450dbe970