9 Commits

Author SHA1 Message Date
ceec364ed4 ktutil: Add import command and other improvements
- Add an import command that imports JSON as output by
   `ktutil list --json --keys`.

   This is enables one to filter/edit keytabs with jq!

 - Add a `merge` alias for the `copy` command, since that's effectively
   what it does.

 - Add a `--copy-duplicates` option to the `copy`/`merge` command.

 - Add a `--no-create` option to the `get` command.

 - Add a `--no-change-keys` option to the `get` command.

 - Make `add` complain if it can't finish writing to the keytab.
2022-10-03 09:44:22 -05:00
69dc89b39a ktutil: Add list --json option 2022-10-03 09:44:22 -05:00
d8394c65b7 Add new kadmin/ktutil --keep* and --enctypes opts
- Add --keepold/keepallold/pruneall options to various kadmin/ktutil
   commands.  Default behavior to "prune old keys".

 - When setting keys for a service, we need to specify enctypes for it:

    - Always use kadm5_randkey_principal_3() instead of the older
      kadm5_randkey_principal().

    - Add krb5_string_to_keysalts2(), like MIT's krb5_string_to_keysalts(),
      but with a context, and simpler.

    - Add --enctypes options to various kadmin/ktutil commands.

    - Add [libdefaults] supported_enctypes param with enctype[:salttype]
      list.

    - Add [realms] realm supported_enctypes param with enctype[:salttype]
      list.

      Default to aes128-cts-hmac-sha1-96:normal.
2019-01-02 17:29:08 -06:00
6c4764fbc7 Fix incorrect usage message in ktutil del
Usage: remove [-h] [--principal=principal] [-p principal] [--kvno=enctype]
   [-V enctype] [--enctype=enctype] [-e enctype] [--help]
-p principal, --principal=principal principal to remove
-V enctype, --kvno=enctype          key version to remove
-e enctype, --enctype=enctype       enctype to remove
2012-05-03 15:03:07 +01:00
cbbc3abeb4 add destroy, remove krb4 functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24452 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:46:25 +00:00
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
9b79cebe84 add --no-delete flags
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23682 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 11:11:49 +00:00
239d06f465 add option -H --hex to the add command
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14793 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-14 16:45:14 +00:00
6ea52bf4dc slc source file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14258 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-23 14:39:49 +00:00