summaryrefslogtreecommitdiffstats
path: root/src/kadmin/dbutil
Commit message (Collapse)AuthorAgeFilesLines
* Delete .cvsignore files; contents have already been Sam Hartman2005-08-241-3/+0
| | | | | | set on svn:ignore properties. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17353 dc483132-0cff-0310-8789-dd5450dbe970
* Use DL_LIB and THREAD_LINKOPTS instead of explicitly specifying the dlKen Raeburn2005-06-212-1/+4
| | | | | | and pthread libraries by name. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17265 dc483132-0cff-0310-8789-dd5450dbe970
* Novell Database Abstraction Layer merge.Ken Raeburn2005-06-2110-265/+260
| | | | | | Will probably break things. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17258 dc483132-0cff-0310-8789-dd5450dbe970
* Finally applied patch from Nalin Dahyabhai at Red Hat to fix 0/NULL bugs inKen Raeburn2004-08-272-3/+9
| | | | | | | | | variadic argument lists to krb5_build_principal{,_ext}. Skipped the stylistic patches that removed casts of NULL. tag: 1850 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16693 dc483132-0cff-0310-8789-dd5450dbe970
* This commit merges the RPCSEC_GSS integration branch onto the trunk.Tom Yu2004-06-162-1/+28
| | | | | | | | | | | | | | | | | | | Remaining work includes: * Default to using kadmin/fqdn for SEAM compatibility * Namespace cleanups and other API tweaks -- this API is not stable yet * Fix lib/rpc/unit-test testsuite to test RPCSEC_GSS in addition to AUTH_GSSAPI Additional work will be tracked in separate tickets. This merge is bracketed between the tags "tlyu-umich-rpc-merge-pre" and "tlyu-umich-rpc-merge-post". ticket: 2578 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16467 dc483132-0cff-0310-8789-dd5450dbe970
* errno should never be explicitly declaredKen Raeburn2003-04-243-3/+4
| | | | | | | | | | | | Remove explicit declarations of errno; include errno.h as needed. (Also, errmsg in krb4, and malloc in compile_et.) ticket: new target_version: 1.3 tags: pullup status: resolved git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15368 dc483132-0cff-0310-8789-dd5450dbe970
* Log entries for Makefile.ov deletionKen Raeburn2003-01-081-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15090 dc483132-0cff-0310-8789-dd5450dbe970
* nuke old OV makefile stuffKen Raeburn2003-01-071-19/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15088 dc483132-0cff-0310-8789-dd5450dbe970
* This commit fixes up the in-tree callers of krb5_read_password() andTom Yu2002-11-063-2/+8
| | | | | | | | | | des_read_password(). We should perhaps tighten up the test suite now. ticket: 1217 status: open target_version: 1.3 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14972 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Revert $(S)=>/ change, for Windows supportKen Raeburn2002-08-292-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14786 dc483132-0cff-0310-8789-dd5450dbe970
* Ignore a bunch of files generated by building in the source tree, excludingKen Raeburn2002-08-291-0/+3
| | | | | | | those covered by CVSROOT/cvsignore patterns. Static UNIX build only, at the moment, may need updates for other configurations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14783 dc483132-0cff-0310-8789-dd5450dbe970
* Change $(S)=>/ and $(U)=>.. globallyKen Raeburn2002-08-232-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14761 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c (dump_db): Update usage comment. Add "-rev" andTom Yu2002-08-234-16/+80
| | | | | | | | | | | | | | | | | | "-recurse" flags to permit reverse and recursive dumping of the database, respectively. Check for dump filename beginning with "-" to avoid accidental dumps to such filenames. * kdb5_util.c (usage): Update to match reality, primarily by updating the "dump" usage, but also showing global options before the command, which is how they were being interpreted anyway. * kdb5_util.M: Update to match reality. Document "-mkey_convert", "-new_mkey_file", "-rev", and "-recurse" options to "dump". Document "dump to stdout" behavior. Show global options before the command. Make some formatting fixes. s/binary tree/btree/ since the btree back end is actually an n-ary tree. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14757 dc483132-0cff-0310-8789-dd5450dbe970
* * main.c: updated the usage functionJen Selby2002-08-142-1/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14712 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c (master_key_convert): Iterate over freeingTom Yu2002-07-312-2/+12
| | | | | | | key_data->key_data_contents[j] rather than attempting to free key_data->key_data_contents. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14678 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_util.M: added documentation for some options.Jen Selby2002-07-292-2/+28
| | | | | | | | | | * kvno.M: added documentation of the "-q" and "-h" options. * kadmin.M: corrected documenation of "-k/-t" options. Added documentation for some other options. Updated the lists of aliases for commands, some command options, and some of the sample output. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14671 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c (dump_ov_princ): Remove variable set but unusedEzra Peisach2002-07-152-4/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14650 dc483132-0cff-0310-8789-dd5450dbe970
* call krb5_c_ versions of enctype/cksumtype checking routinesKen Raeburn2002-04-064-8/+15
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14367 dc483132-0cff-0310-8789-dd5450dbe970
* Implement code to get random data from /dev/{random,urandom}. ForSam Hartman2002-01-082-1/+12
| | | | | | | init_context use /dev/urandom; for database creation use /dev/random if it exists. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14087 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c (dump_db): Pass krb5_boolean instead of char * asEzra Peisach2001-10-262-1/+8
| | | | | | argument to kb5_db_fetch_mkey(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13861 dc483132-0cff-0310-8789-dd5450dbe970
* * loadv4.c (fixup_database): Don't set SUPPORT_DESMD5 anymoreTom Yu2001-10-252-23/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13858 dc483132-0cff-0310-8789-dd5450dbe970
* Don't conditionalize prototypes; delete macros supporting it. (Maybe overdone;Ken Raeburn2001-10-106-82/+86
| | | | | | don't worry about restoring them when importing new versions of code.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13792 dc483132-0cff-0310-8789-dd5450dbe970
* * string_table.c (str_INITING_KCONTEXT): Variable deleted.Ken Raeburn2001-07-164-5/+10
| | | | | | | | | * string_table.h (str_INITING_KCONTEXT): Declaration deleted. * kadm5_create.c (kadm5_create, kadm5_create_magic_princs): Don't use str_INITING_KCONTEXT, instead provide (different!) messages more appropriate to the actual code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13606 dc483132-0cff-0310-8789-dd5450dbe970
* * nstrtok.h: New file with prototype for nstrtokEzra Peisach2001-07-016-37/+22
| | | | | | | | | | | | | * ovload.c: Include nstrtok.h * strtok.c: Include nstrtok.h for prototype. Declare delim as const char * argument. Delete rcsid. * string_table.c: Delete rcsid. * kadm5_create.c (build_name_with_realm): Declare static. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13536 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_util.c (main): Change optarg to koptarg to preventEzra Peisach2001-06-222-9/+14
| | | | | | shadowing of getopt function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13488 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_create.c: Include <krb5/adm_proto.h> forEzra Peisach2001-06-202-0/+6
| | | | | | krb5_keysalt_iterate() prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13413 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed a bunch of typosMitchell Berger2001-06-204-9/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13398 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c (name_matches): Cleanup warning of assignments inEzra Peisach2001-06-182-4/+9
| | | | | | conditionals. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13383 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c: Include regex.h if exists and if HAVE_REGCOMPEzra Peisach2001-06-182-1/+6
| | | | | | defined. Preior to this, regex.h was never included. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13367 dc483132-0cff-0310-8789-dd5450dbe970
* * dumpv4.c: Pass C_Block * to des_read_password() as per prototypeEzra Peisach2001-06-087-4/+23
| | | | | | | | | | | | * loadv4.c: Include k5-int.h before des.h for des_read_password prototype. Pass C_Block * to des_read_password() as per prototype. * kdb5_util.h: Add prototype for usage. * kdb5_create.c, kdb5_destroy.c, kdb5_stash.c: Include kdb5_util.h for usage() prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13317 dc483132-0cff-0310-8789-dd5450dbe970
* * kadm5_create.c: Add prototype for staticEzra Peisach2001-06-045-35/+55
| | | | | | | | | | add_admin_princs(). Cleanup calling of add_admin_princs() to be consistant with prototype. * kdb5_create.c, kdb5_stash.c, kdb5_destroy.c: Cleanup assignments in conditionals. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13267 dc483132-0cff-0310-8789-dd5450dbe970
* * loadv4.c, ovload.c, kdb5_util.h, kdb5_util.c, kadm5_create.c,Ezra Peisach2001-02-268-160/+218
| | | | | | | | dumpv4.c, dump.c: Compiler warning cleanup including prototypes, assignments in conditionals, unused variables, varaibles shadowing one-another. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13028 dc483132-0cff-0310-8789-dd5450dbe970
* * loadv4.c: Remove references to KRB_NEVERDATETom Yu2001-02-092-4/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13003 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_util.M: Fix some formatting nits and document new flagsTom Yu2001-02-062-12/+28
| | | | | | controlling dump formats. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12998 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_create.c (kdb5_create): Argument to krb5_read_passwordEzra Peisach2000-10-172-1/+6
| | | | | | changed to unsigned int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12791 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_util.M: Update manpageTom Yu2000-10-176-16/+68
| | | | | | | | | | | | | | | | * kdb5_util.c (usage): Update usage message. * dumpv4.c (dump_v4_iterator): Add logic to deal with long lifetimes, as well as optionally using short lifetimes. * loadv4.c (load_v4db): Add logic to deal with long lifetimes, as well as optionally using short lifetimes. * kadm5_create.c (kadm5_create_magic_princs): Add calls to krb5_klog_init() and krb5_klog_close() to avoid coredumping if kadm5_init() calls krb5_klog_syslog(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12763 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c: Various message char arrays turned into macros, to permit gcc toKen Raeburn2000-07-052-64/+69
| | | | | | | | verify format strings and arguments match. (k5beta6_dump_header, k5beta7_dump_header): Deleted. (dump_ov_princ): Use %lx for aux_attributes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12534 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c: Add a new dump version, r1_3_version, and make it theTom Yu2000-07-012-6/+68
| | | | | | | | default; it will be used in krb5-1.3 and will permit a principal's kadm5 data to be dumped. This is an interim measure until we redesign the dump format somewhat. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12496 dc483132-0cff-0310-8789-dd5450dbe970
* Check for existance of <memory.h>.Wilfredo Sanchez2000-06-012-0/+7
| | | | | | (from Nathan Neulinger <nneul@umr.edu>) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12332 dc483132-0cff-0310-8789-dd5450dbe970
* Change wsanchez@apple -> tritan@mitWilfredo Sanchez2000-06-011-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12331 dc483132-0cff-0310-8789-dd5450dbe970
* log tritan's changesTom Yu1999-10-261-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11877 dc483132-0cff-0310-8789-dd5450dbe970
* Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, LOCAL_INCLUDES suchWilfredo Sanchez1999-10-261-1/+2
| | | | | | | that one can override CFLAGS from the command line without losing CPP search patchs and defines. Some associated Makefile cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11876 dc483132-0cff-0310-8789-dd5450dbe970
* copyright notice updates from 1.1 branchKen Raeburn1999-09-2411-11/+44
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11853 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_util.c (main): Do try using com_err in the case that krb5_init_contextKen Raeburn1999-07-072-2/+6
| | | | | | | fails, instead of fprintf of the error number. (cf krb5-bugs db #499, 13-Nov-1997) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11546 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-12-052-0/+7
| | | | | | to buildtop and thisconfigdir, respectively.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11082 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c: Fix up to work with new crypto APITom Yu1998-11-032-26/+23
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11010 dc483132-0cff-0310-8789-dd5450dbe970
* pull up 3des implementation from the marc-3des branchMarc Horowitz1998-10-307-169/+351
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11001 dc483132-0cff-0310-8789-dd5450dbe970
* Add support for changing the master key for a database as part ofTheodore Tso1998-09-302-26/+167
| | | | | | creating a dump of the database. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10952 dc483132-0cff-0310-8789-dd5450dbe970
* POSIX states that getopt returns -1 when it is done parsing options,Theodore Tso1998-05-064-3/+10
| | | | | | not EOF. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10550 dc483132-0cff-0310-8789-dd5450dbe970
* Collapse all configure.in files under the kadmin directory into theTheodore Tso1998-02-283-9/+7
| | | | | | kadmin directory. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10481 dc483132-0cff-0310-8789-dd5450dbe970