Love Hörnquist Åstrand
ed5760cbdf
Error codes are just fine, remove XXX now.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21577 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-16 08:14:06 +00:00
Love Hörnquist Åstrand
03dc69b9c2
switch to ET errors.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21574 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-16 07:44:18 +00:00
Love Hörnquist Åstrand
562c2aced2
Adapt to signature change of _krb5_principalname2krb5_principal.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18349 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-08 13:43:52 +00:00
Love Hörnquist Åstrand
599d3cf216
Change _kdc_db_fetch() to return the database pointer too if needed by
...
the consumer.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17904 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-23 11:45:16 +00:00
Love Hörnquist Åstrand
45067d5a62
Use enable_v4_per_principal and check the new hdb flag.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17647 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-14 18:27:28 +00:00
Love Hörnquist Åstrand
652da91adb
Rename u_intXX_t to uintXX_t
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17447 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 10:52:01 +00:00
Love Hörnquist Åstrand
30c1b8e531
Use the new unsigned integer storage types.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17429 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-04 09:51:22 +00:00
Love Hörnquist Åstrand
357ca89f2d
(_kdc_db_fetch4): pass down flags though krb5_425_conv_principal_ext2
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17315 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-27 11:32:13 +00:00
Love Hörnquist Åstrand
2211af38b6
_kdc_check_flags takes hdb_entry_ex
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16948 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 01:54:37 +00:00
Love Hörnquist Åstrand
ddddd59d94
Finish up transition from hdb_entry to hdb_entry_ex.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16402 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-13 19:44:27 +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
7a3fc5e663
Don't pollute namespace, generate public headerfile
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15532 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-30 01:54:49 +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
6caae3694e
make compile
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14901 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-23 20:11:55 +00:00
Love Hörnquist Åstrand
2eb8ce2e5f
Use the new Kerberos 4 functions in libkrb5 and so kerberos 4 is
...
always compiled in (still default disabled)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14900 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-23 19:57:56 +00:00
Johan Danielsson
5a1b9bec7a
(do_version4): fix stupid error in previous
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14724 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-04 11:01:02 +00:00
Johan Danielsson
ffa0f87aa6
(do_version4): check client and server max_life
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14714 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-01 15:53:18 +00:00
Love Hörnquist Åstrand
6f41f39523
use private version of principalname
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14424 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-29 19:22:28 +00:00
Love Hörnquist Åstrand
57826dfa7e
update year
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13650 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-30 10:32:47 +00:00
Love Hörnquist Åstrand
3ea2077af8
stop the client from renewing tickets into the future
...
From: Jeffrey Hutzelman <jhutz@cmu.edu >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13646 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-30 09:19:14 +00:00
Assar Westerlund
f348b5e16e
pay attention to enable_v4_cross_realm
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11808 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-17 05:37:55 +00:00
Love Hörnquist Åstrand
14e488c11f
add krb4 into the most error messages written to the logfile
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11713 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-14 13:53:00 +00:00
Love Hörnquist Åstrand
146162e8c5
export encode_v4_ticket() and get_des_key() even when we build without
...
kerberos 4, 524 needs them
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11571 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-14 05:36:34 +00:00
Johan Danielsson
fa0524600b
move encrypt_v4_ticket to 524.c, since that's where it's used
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11537 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-11-07 10:05:23 +00:00
Johan Danielsson
f5c1154132
storage tweaks
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10935 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 16:08:24 +00:00
Assar Westerlund
c672a244ba
make the kvno's in the krb4 universe by the real one % 256, since they
...
cannot only be 8 bit, and the v5 ones are actually 32 bits
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10864 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-03-10 23:05:57 +00:00
Assar Westerlund
a72c878c4f
(valid_princ): use TRUE/FALSE
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10733 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-20 09:34:42 +00:00
Assar Westerlund
4d28b080a6
(get_des_key): check for null keys even if is_server
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10514 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-21 23:00:16 +00:00
Johan Danielsson
3e1b5578a6
(get_des_key): if getting a key for a server, return any des-key not
...
just keys that can be string-to-keyed by the client
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10497 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-17 07:48:24 +00:00
Assar Westerlund
d4263fdf0d
adapt to new db_fetch, and try to print useful error messages when it fails
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9600 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 01:44:08 +00:00
Assar Westerlund
0ca8aae650
(valid_princ): check return value of functions
...
(encode_v4_ticket): add some const
new calls for free_ent
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9031 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-10 14:15:52 +00:00
Assar Westerlund
d2db791403
(get_des_key): rewrite some, be more paranoid
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8571 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-07 21:52:02 +00:00
Assar Westerlund
21427e64d6
(get_des_key): fix thinkos/typos
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8482 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-29 03:58:13 +00:00
Assar Westerlund
179186f843
(get_des_key): add missing []
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8481 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-29 03:51:55 +00:00
Johan Danielsson
4f91e3feb7
pass extra parameter to get_des_key
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8472 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-28 11:51:42 +00:00
Johan Danielsson
af5f12eac7
(get_des_key): change to return v4 or afs keys if possible
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8470 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-28 11:46:02 +00:00
Johan Danielsson
d8309e5ff2
if v4 is not enabled, just generate error reply and exit
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8342 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-07 09:53:39 +00:00
Assar Westerlund
fdcc108b67
(do_version4): call check_flags.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8032 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-11 03:29:02 +00:00
Assar Westerlund
2f94c7de75
(do_version4): if an tgs-req is received with an old kvno, return an
...
error reply and write a message in the log.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7932 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-13 19:27:36 +00:00
Assar Westerlund
c976466fbf
(do_version4): look at check_ticket_addresses and emulate that by
...
setting krb_ignore_ip_address (not a great interface but it doesn't
seem like the time to go around fixing libkrb stuff now)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7843 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-02 01:26:41 +00:00
Assar Westerlund
1ab86a66a5
(do_version4): check if preauth was required and bail-out if so since
...
there's no way that could be done in v4. Return NULL_KEY as an error
to the client (which is non-obvious, but what can you do?)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-01-12 09:27:50 +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
d472f4f067
(get_des_key): support null keys
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7153 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-17 10:33:55 +00:00
Assar Westerlund
6e2c225c70
(encrypt_v4_ticket): error check malloc properly
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6391 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-03 02:24:27 +00:00
Johan Danielsson
aaae186ab9
merge new-crypto branch
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5332 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-11 21:03:59 +00:00
Assar Westerlund
65d4084642
merged in 1.19.2.1->1.19.2.2
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5124 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-17 20:44:21 +00:00
Johan Danielsson
6351227b0f
Return sane error code if krb_rd_req fails.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4605 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-19 15:54:06 +00:00
Assar Westerlund
b3712d39f4
less warnings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3750 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-02 04:07:03 +00:00
Assar Westerlund
6b919c6819
removed all unsealing, now done by the hdb layer
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3629 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-16 04:24:29 +00:00
Johan Danielsson
53f897d164
new salt format
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3319 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-31 19:35:37 +00:00