Commit Graph

34 Commits

Author SHA1 Message Date
Luke Howard
0e8c4ccc6e hdb: eliminate hdb_entry_ex
Remove hdb_entry_ex and revert to the original design of hdb_entry (except with
an additional context member in hdb_entry which is managed by the free_entry
method in HDB).
2022-01-15 18:54:57 +11:00
Luke Howard
0165633964 hdb: add no-auth-data-reqd flag to HDB entry
Add a new flag, no-auth-data-reqd, to the HDB entry which indicates that a PAC
should not be included on issued service tickets.
2021-12-23 13:52:12 +11:00
Nicolas Williams
8671858178 kadm5: Fix KRB5_TL_LAST_PWD_CHANGE handling 2021-10-11 13:58:15 -05:00
Nicolas Williams
fb298a023b kadm5: Teach perform_tl_data() about aliases
Sort of.  It already knew.

We have a mess where new things get sent to the server as
KRB5_TL_EXTENSION, but old things get sent to the client as whatever
appropriate KRB5_TL we have, and... we call perform_tl_data() on all TL,
but we don't remove unmodified TL on the client side, and...

Anyways.  This commit is a band-aid, but it works.
2021-10-11 13:58:15 -05:00
Nicolas Williams
ae8908bf81 kadmin: Add disallow-client attribute
This is useful for services that need not be clients.  For example, an
untrusted service that need only accept authentication from clients,
but not initiate authentication to other services.
2021-06-22 13:01:24 -05:00
Nicolas Williams
5447b81fb1 hdb: Move virtual principals into HDB layer
This is a large commit that adds several features:

 - Revamps and moves virtual host-based service principal functionality
   from kdc/ to lib/hdb/ so that it may be automatically visible to
   lib/kadm5/, as well as kadmin(1)/kadmind(8) and ktutil(1).

   The changes are backwards-incompatible.

 - Completes support for documenting a service principal's supported
   enctypes in its HDB entry independently of its long-term keys.  This
   will reduce HDB bloat by not requiring that service principals have
   more long-term keys than they need just to document the service's
   supported enctypes.

 - Adds support for storing krb5.conf content in principals' HDB
   entries.  This may eventually be used for causing Heimdal KDC
   services to reconfigure primary/secondary roles automatically by
   discovering the configured primary in an HDB entry for the realm.

   For now this will be used to help reduce the amount of configuration
   needed by clients of an upcoming HTTP binding of the kadmin service.
2020-09-08 00:25:36 -05:00
Roland C. Dowdeswell
0da84c0c3a Add require-pwchange flag to HDB and honour it if present in mit-db:. 2012-02-27 10:19:54 +00:00
Nicolas Williams
0c893d3980 Fixed booboos from kadm5 key history patch set
Also: add support for ignoring null enctype / zero-length keys,
    which *can* be found in MIT DB entries created in pre-historic
    times.

    Also: make the mitdb HDB backend more elegant (e.g., use the ASN.1
    compiler's generated sequence/array utility functions.

    Also: add a utility function needed for kadm5 kvno change
    improvements and make kadmin's mod --kvno work correctly and
    naturally.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2011-09-22 15:13:13 +02:00
Nicolas Williams
e23a1efdc9 Fixes for updates of KADM5_KVNO but not KEY_DATA and vice-versa.
It turns out that updates of kvno but not key data and vice-versa are
both, allowed and actually done (e.g, in kadmin's ank).  Doing the right
thing in these cases turns out to be a bit tricky, but this commit ought
to do it.
2011-07-22 16:07:10 -05:00
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
a9e58b7e77 don't set flags when we are not asked to 2009-11-22 17:14:47 -08:00
Love Hornquist Astrand
5e13cd2e0d provide default when there is no default 2009-11-22 14:11:24 -08:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +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
9478fbdcac Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18823 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-22 10:15:53 +00:00
Love Hörnquist Åstrand
0e5d5e7f5e Add KRB5_KDB_ALLOW_DIGEST
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17926 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:49:46 +00:00
Love Hörnquist Åstrand
ceffbfefd4 (attr_to_flags): Add KRB5_KDB_ALLOW_KERBEROS4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17651 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-14 18:33:40 +00:00
Love Hörnquist Åstrand
5e6ee1d986 (attr_to_flags): Add KRB5_KDB_TRUSTED_FOR_DELEGATION
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17631 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-06 21:29:57 +00:00
Love Hörnquist Åstrand
cb704efeeb Rename u_intXX_t to uintXX_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 10:37:46 +00:00
Love Hörnquist Åstrand
0c2369acd0 Wrap hdb_entry with hdb_entry_ex, patch originally from Andrew Bartlet
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16378 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:40:12 +00:00
Love Hörnquist Åstrand
eb232f60ee Merge in KADM5_TL_DATA in the database.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15883 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-11 13:28:22 +00:00
Love Hörnquist Åstrand
e1b08855ae (attr_to_flags): check for KRB5_KDB_OK_AS_DELEGATE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15312 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-30 20:44:54 +00:00
Assar Westerlund
9e629a4fad (_kadm5_setup_entry): add context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8060 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-23 23:02:35 +00:00
Johan Danielsson
c5b916ca6f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
5eabbd24d6 (_kadm5_setup_entry): make princ_expire_time == 0 and pw_expiration ==
0 mean never


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6499 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-23 22:08:45 +00:00
Assar Westerlund
5f80af6d10 more braces
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6419 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-05 00:19:52 +00:00
Assar Westerlund
7d1092fd56 (_kadm5_setup_entry): handle 0 == unlimited correctly. From Michal
Vocu <michal@karlin.mff.cuni.cz>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6350 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 11:55:24 +00:00
Assar Westerlund
f69d7045c9 (_kadm5_setup_entry): change so that it takes three masks, one for
what bits to set and one for each of principal and def containing the
bits that are set there.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6130 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-04 18:42:29 +00:00
Johan Danielsson
2b6bb5ec7a (_kadm5_setup_entry): set key_data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6077 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-03 16:40:46 +00:00
Assar Westerlund
870d1d370c (_kadm5_setup_entry): braces fix
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5565 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-17 02:03:36 +00:00
Johan Danielsson
bc676392d6 Always enable client. Only set max-life and max-renew if != 0.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4255 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-03 21:14:05 +00:00
Assar Westerlund
971221e2e7 (attr_to_flags): try to set `client'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4230 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-23 00:38:29 +00:00
Johan Danielsson
7d416949bc Add optional default entry to get some values from.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3816 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-07 01:45:22 +00:00
Johan Danielsson
68d77a285f Beginning of a kadm5-library
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3662 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-25 06:19:27 +00:00