Commit Graph

87 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
9ae2936124 use krb5_principal_set_realm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22728 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:06:46 +00:00
Love Hörnquist Åstrand
8d40c2994b check return value of alloc functions, from Charles Longeau
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21745 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 16:11:25 +00:00
Love Hörnquist Åstrand
6f469b4af4 remove code that depend on kerberos 4 library
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20456 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-19 20:29:42 +00:00
Love Hörnquist Åstrand
7a01a70ac2 (propagate_database): on any failure, drop the connection to the peer
and try next one.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20268 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-21 20:48:40 +00:00
Love Hörnquist Åstrand
ed5e62f11c Return error codes on failure, improve error reporting.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19302 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-10 01:03:46 +00:00
Love Hörnquist Åstrand
ece5f9603e Make krb5_get_init_creds_opt_free take a context argument.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19078 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-20 18:12:41 +00:00
Love Hörnquist Åstrand
5800a9f897 (main): make sure type doesn't need to be set
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17012 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 21:41:14 +00:00
Love Hörnquist Åstrand
54f35ca241 (main): remove dead code.
Coverity NetBSD CID#633


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17008 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 14:00:57 +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
80e3a7bc53 Use the _krb5_krb_life_to_time function from libkrb5 instead of
including our own here too.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15828 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-28 14:13:53 +00:00
Love Hörnquist Åstrand
7132a9b084 Merge in the libkdc/kdc configuration split from Andrew Bartlet <abartlet@samba.org>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15529 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-30 01:03:35 +00:00
Love Hörnquist Åstrand
90930940d1 include kerberos 4 headers here
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14916 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 13:48:37 +00:00
Johan Danielsson
26457b7135 replace krb5_free_creds_contents by krb5_free_cred_contents
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 19:25:35 +00:00
Love Hörnquist Åstrand
0540f13b86 prefix all struct HDB elements with hdb_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12880 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-19 00:25:35 +00:00
Love Hörnquist Åstrand
5d190295aa add context argument to krb5_get_init_creds_opt_alloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 15:28:20 +00:00
Love Hörnquist Åstrand
3779c3d612 use DES_KEY_SZ instead of sizeof(des_block)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12745 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 03:12:32 +00:00
Love Hörnquist Åstrand
d1bbbff72f use krb5_get_init_creds_opt_alloc/krb5_get_init_creds_opt_free
compare a uint32_t with 0xffffffff instead of -1


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12735 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:17:09 +00:00
Johan Danielsson
03b00835b5 set AP_OPTS_USE_SUBKEY
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11374 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 18:19:41 +00:00
Johan Danielsson
fc4f2a6921 constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10925 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 10:18:50 +00:00
Assar Westerlund
c597d7cb0f printf size_t correctly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10737 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-23 05:13:17 +00:00
Johan Danielsson
4526cd826e more free's
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10721 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-18 09:37:33 +00:00
Assar Westerlund
d0cf56e249 (usage): clarify a tiny bit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10356 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-19 16:29:35 +00:00
Johan Danielsson
f2b24f8055 remove v4 master key handling; remove old v4-db and ka-db flags; add
defaults for v4_realm and afs_cell


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10312 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-11 19:30:48 +00:00
Johan Danielsson
f18cc03cc0 missed to commit these
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10227 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-02 19:14:58 +00:00
Johan Danielsson
2b67390d1d always include kaserver support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10215 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-02 16:32:19 +00:00
Assar Westerlund
67422a6b02 s/[gs]et_progname/[gs]etprogname/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-20 01:44:56 +00:00
Assar Westerlund
28160c99b9 printf format fixes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9672 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-12 17:13:13 +00:00
Assar Westerlund
9451280638 (v4_get_masterkey): check kdb_verify_master_key properly
(kdb_prop): decrypt key properly


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9629 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-05 03:40:00 +00:00
Assar Westerlund
d2ae43cdc4 handle building with KRB4
always try to decrypt v4 data with the master key
leave it up to the v5 how to encrypt with that master key


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9628 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-05 03:05:31 +00:00
Assar Westerlund
57de673572 fix a typo and check some more return values
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9620 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 17:07:39 +00:00
Assar Westerlund
91be6656d6 (main): check for file being specified
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9616 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 04:15:50 +00:00
Assar Westerlund
e6daaae55c (v5_prop): adapt to new hdb_seal_keys and hdb_unseal_keys
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9596 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 01:25:19 +00:00
Assar Westerlund
8b46590eac (realm_buf): move it so it becomes properly conditional on KRB4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9580 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-29 21:21:50 +00:00
Johan Danielsson
5cc4b6ccf4 make it possible to convert a v4 dump file without having any v4
libraries; the kdb backend still require them


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9507 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-26 15:57:46 +00:00
Assar Westerlund
7750091bd7 un-conditionalize local_realm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8848 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-27 05:26:58 +00:00
Assar Westerlund
0669d5eeaa (dump_database): write an empty message to signal end of dump
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8841 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-27 03:11:55 +00:00
Johan Danielsson
ef6c5d89d3 nuke extra definitions of krb5_read_priv_message et.al
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8735 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-21 23:08:06 +00:00
Assar Westerlund
ff9e42ae48 hdb-private.h: remove
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8616 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-08 16:09:27 +00:00
Assar Westerlund
ce213089dc update to new hdb_seal_keys_mkey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8593 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-08 13:39:54 +00:00
Johan Danielsson
c7b49a1830 only get master key if we're actually going to use it; enable reading
of MIT krb5 dump files


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8553 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-05 19:29:32 +00:00
Johan Danielsson
bb90aecaee pass context to seal/unseal_keys
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8551 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-05 13:17:32 +00:00
Johan Danielsson
05582a68ca (ka_convert): allow using null salt, and treat 0 pw_expire as never
(from Derrick Brashear)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8456 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-25 15:57:18 +00:00
Assar Westerlund
6110b44e5a (v5_prop): make static
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8450 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-21 23:56:35 +00:00
Johan Danielsson
08105fdee2 add hdb keytabs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8440 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-21 16:17:22 +00:00
Johan Danielsson
a7b855ce27 move prop_data to hprop.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8414 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-20 13:23:10 +00:00
Johan Danielsson
30b66a841e generalize source database handing, add support for non-standard local
realms (from by Daniel Kouril <kouril@ics.muni.cz> and Miroslav Ruda
<ruda@ics.muni.cz>), and support for using different ports (requested
by the Czechs, but implemented differently)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8402 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-19 15:45:20 +00:00
Assar Westerlund
42de67f5ce (v4_prop): set the `valid_end' from the v4 expiration date instead of
the `pw_expire'
(ka_convert): set `valid_end' from ka expiration data and `pw_expire'
from pw_change + pw_expire
(main): add a default database for ka dumping


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7996 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-03 12:35:48 +00:00
Assar Westerlund
661312f68b re-write to use getaddrinfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7492 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-04 18:02:18 +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
39987d6e94 (ka_convert): set flags correctly for krbtgt/CELL principals
(main): get rid of bogus opening of hdb database when propagating
ka-server database


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6947 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-13 01:22:04 +00:00