Commit Graph

33 Commits

Author SHA1 Message Date
Nicolas Williams
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
Radoslav Bodo
f3f06fcba9 kadmin selective prune of historic key for principal 2018-12-31 14:17:10 -06:00
Luke Howard
c89d3f3b8c kadmin: allow enforcing password quality on admin password change
This patch adds the "enforce_on_admin_set" configuration knob in the
[password_quality] section. When this is enabled, administrative password
changes via the kadmin or kpasswd protocols will be subject to password quality
checks. (An administrative password change is one where the authenticating
principal is different to the principal whose password is being changed.)

Note that kadmin running in local mode (-l) is unaffected by this patch.
2018-12-26 15:38:48 +11:00
Adam Henry Lewenberg
c9c72ab11c Put double quotes around the foopassword in case password has whitespace
From a suggestion by nicowilliams, put double quotes aroung the varaible
$foopassword in case the password contains whitespace or other special
characters.
2018-12-23 01:33:31 -06:00
Adam Lewenberg
7c82637120 Make the password used in check-kadmin.in be settable as a parameter
When we use a custom patch that makes strong passwords required even for
administrators the check-kadmin test will fail because "foo" (the password
used in check-kadmin.in) is not a strong password. So, we make the
password used in check-kadmin.in settable as a parameter. This way, we
only have to change one line of check-kadmin.in rather than a dozen to get
check-kadmin to pass when using the strong-passwords everywhere patch.

Note that this change makes no real change to any of the tests in
check-kadmin.in: no tests are changed, removed, or added.
2018-12-23 01:33:31 -06:00
Quanah Gibson-Mount
7c16ce3457 Minor typo/grammar fixes 2017-03-10 15:47:43 -05:00
Nicolas Williams
2027aa11ed Use --detach in tests to avoid waiting 2016-12-07 19:52:29 -06:00
Nicolas Williams
8343733562 kadmind: check ACLs for aliases CVE-2016-2400
CVE-2016-2400

kadmind(8) was not checking for 'add' permission to aliases added via
kadm5_modify_principal().  This is a security vulnerability.  The impact
of this vulnerability is mostly minor because most sites that use
kadmind(8) generally grant roughly the same level of permissions to all
administrators.  However, the impact will be higher for sites that grant
modify privileges to large numbers of less-privileged users.

From what we know of existing deployments of Heimdal, it seems very
likely that the impact of this vulnerability will be minor for most
sites.
2016-02-26 01:04:32 -06:00
Love Hornquist Astrand
4ebfd6b818 make sure logs are truncated 2012-10-07 11:11:17 -07:00
Love Hornquist Astrand
fed3050bc0 use ` instead of $( to please legacy solaris /bin/sh 2011-10-19 11:36:18 +02:00
Love Hornquist Astrand
f73a7b94d0 test kadmind get -o 2010-06-03 11:44:14 -07:00
Love Hornquist Astrand
86da42df1d abstract out --no-afslog and --no-unlog 2010-06-01 14:42:16 -07:00
Love Hornquist Astrand
72908828b1 remove $Id$ 2009-09-21 10:36:37 -07:00
Love Hornquist Astrand
3ed38b29c7 If client tried IPv6, but service only listened on IPv4 2009-09-21 07:55:33 -07:00
Love Hornquist Astrand
4795494a78 If there is no useful db support compile in, disable test 2009-09-19 14:06:35 -07:00
Love Hornquist Astrand
0a9eeb8831 migrate to ${env_setup} 2009-09-07 15:10:43 -07:00
Love Hornquist Astrand
17de01f523 Check that get -o pkinit-acl works. 2009-07-19 20:57:47 -07:00
Love Hörnquist Åstrand
d93ac20298 kill -9 to make store its dead
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24993 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 09:03:47 +00:00
Love Hörnquist Åstrand
60b4ec74d5 dont use leaks kill on non existant process
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24166 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:11:02 +00:00
Love Hörnquist Åstrand
df0cc7d1b4 use leaks-kill.sh
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24165 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:10:51 +00:00
Love Hörnquist Åstrand
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
Love Hörnquist Åstrand
fac9f2afdd check non globing request
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23254 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-03 05:28:43 +00:00
Love Hörnquist Åstrand
d7304bbed1 Test globbing acl's
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23250 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-03 05:26:47 +00:00
Love Hörnquist Åstrand
6d694244ce evil hack to support libtool
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22523 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-01-24 12:24:48 +00:00
Love Hörnquist Åstrand
8401ac3331 Check that admin-less principal works.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22187 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-06 05:17:30 +00:00
Love Hörnquist Åstrand
71e883c406 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21851 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-08 06:57:56 +00:00
Love Hörnquist Åstrand
517b2c2920 check response from donotexists testcase.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21710 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-26 20:22:31 +00:00
Love Hörnquist Åstrand
f4d59b79b0 Test donotexists case too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21706 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-26 20:16:59 +00:00
Love Hörnquist Åstrand
130b130885 more hints about what can go wrong.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21596 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-16 18:47:59 +00:00
Love Hörnquist Åstrand
e71c74efdd Give more hints of what went wrong.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-16 10:22:41 +00:00
Love Hörnquist Åstrand
ccb7332e0b Send kill outout to /dev/null.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21472 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-10 16:28:48 +00:00
Love Hörnquist Åstrand
77a6a6f0b1 store password before we start
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21471 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-10 16:27:47 +00:00
Love Hörnquist Åstrand
6a1f5309ab Simple test for server based kadmin.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21466 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-10 16:01:46 +00:00