Commit Graph

23 Commits

Author SHA1 Message Date
Love Hornquist Astrand
1d84562886 add HDBGET: that only supports get, iteration doesnt really make sense for the HDB keytab except when dumping 2013-10-15 12:40:39 +02:00
Nicolas Williams
57f1545a46 Add support for writing to KDB and dumping HDB to MIT KDB dump format
Before this change Heimdal could read KDBs.  Now it can write to
    them too.

    Heimdal can now also dump HDBs (including KDBs) in MIT format, which
    can then be imported with kdb5_util load.

    This is intended to help in migrations from MIT to Heimdal by
    allowing migrations from Heimdal to MIT so that it is possible
    to rollback from Heimdal to MIT should there be any issues.  The
    idea is to allow a) running Heimdal kdc/kadmind with a KDB, or
    b) running Heimdal with an HDB converted from a KDB and then
    rollback by dumping the HDB and loading a KDB.

    Note that not all TL data types are supported, only two: last
    password change and modify-by.  This is the minimum necessary.
    PKINIT users may need to add support for KRB5_TL_USER_CERTIFICATE,
    and for databases with K/M history we may need to add KRB5_TL_MKVNO
    support.

    Support for additional TL data types can be added in
    lib/hdb/hdb-mitdb.c:_hdb_mdb_value2entry() and
    lib/hdb/print.c:entry2mit_string_int().
2012-05-03 14:24:18 -05:00
Nicolas Williams
c9609cdb37 Initial patch for dealing with AD x-realm key rollover
AD issues x-realm TGTs with kvno 0.  On key x-realm trust key change
    we need to be able to try current and previous keys for trust, else
    we will have some failures.
2011-11-15 21:53:33 -06: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
Love Hörnquist Åstrand
c9e37efbe1 try get spelling right 2011-07-30 14:27:32 -07:00
Love Hörnquist Åstrand
e32186d9de expore more 2011-07-24 16:15:06 -07:00
Nicolas Williams
1eb56edd86 Introduce Keys ::= SEQUENCE OF Key in hdb.asn1 so we can get convenience utils. 2011-07-22 16:07:08 -05:00
Nicolas Williams
fca53990e4 Initial commit for second approach for multiple kvno. NOT TESTED! 2011-07-22 16:04:51 -05:00
Love Hornquist Astrand
48504c5771 [Heimdal-704] export encode_Key/length_Key, from Jan Rekorajski 2010-01-04 13:14:11 +01:00
Love Hornquist Astrand
6a7810d12f Export initialize_hdb_error_table_r and free_Salt, requested by Jelmer Vernooij in Debian bug #56275 2010-01-02 17:53:57 +01:00
Love Hornquist Astrand
8ec686805b expose decode_Key 2009-11-17 13:10:04 -08:00
Love Hornquist Astrand
069acd2188 sort 2009-11-17 13:09:12 -08:00
Love Hornquist Astrand
39a751d6fb expose hdb_interface_version 2009-10-13 09:35:39 -07:00
Love Hörnquist Åstrand
590edb2fe7 add hdb_entry_get_pkinit_cert and sort
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25007 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 20:53:27 +00:00
Love Hörnquist Åstrand
8bb6609db6 unexport more internal symbols
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24971 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-28 17:07:42 +00:00
Love Hörnquist Åstrand
a5ee0ef10f unexport hdb_db_create
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24970 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-28 17:07:29 +00:00
Love Hörnquist Åstrand
c3866bd220 add encode_hdb_keyset and length_hdb_keyset
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24966 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-27 14:57:54 +00:00
Love Hörnquist Åstrand
2dab920021 add length_HDB_Ext_PKINIT_acl, encode_HDB_Ext_PKINIT_acl
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24045 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-11-17 21:33:10 +00:00
Love Hörnquist Åstrand
1aff6e34d9 export more
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23530 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-14 23:30:11 +00:00
Love Hörnquist Åstrand
f5660e1ec7 export more
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23524 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-12 20:41:24 +00:00
Love Hörnquist Åstrand
fc1fbd6273 export hdb_kt_ops
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23414 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 18:35:18 +00:00
Love Hörnquist Åstrand
5543b94211 some random bits needed for libkadm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23375 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-17 20:43:02 +00:00
Love Hörnquist Åstrand
f64a1c118a First version of hdb version script.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23166 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-05-05 16:24:39 +00:00