Love Hörnquist Åstrand
0cd989c99e
Turn else info else if to avoid falling of into FALSE.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25205 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-09 14:21:54 +00:00
Love Hörnquist Åstrand
5baf2e3d1a
Simplify datagram_reply
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25132 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-25 16:26:10 +00:00
Love Hörnquist Åstrand
27316b9a1f
use krb5_principal_get_realm
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25111 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-16 08:01:40 +00:00
Love Hörnquist Åstrand
98e7ac2226
spelling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25099 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-06 02:50:54 +00:00
Love Hörnquist Åstrand
7c97293c1e
rename S4U2SELF to FOR_USER
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25044 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:04:33 +00:00
Love Hörnquist Åstrand
905c0d6bc6
compile errors
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:45:08 +00:00
Love Hörnquist Åstrand
489710f0ce
s/KRB5SignedPathPrincipals/Principals/
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24439 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:44:17 +00:00
Love Hörnquist Åstrand
b63c408070
plug memory leak
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24167 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:11:13 +00:00
Love Hörnquist Åstrand
af50e8483c
free subkey earlier, part of #cid 122
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24103 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:00:08 +00:00
Love Hörnquist Åstrand
ab630e414e
Allow the PAC to be passed along during cross-realm authentication.
...
From abartlet
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24021 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-11-03 19:16:12 +00:00
Love Hörnquist Åstrand
dd22b9cdde
switch to krb5_clear_error_message
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23914 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-14 02:56:17 +00: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
858ef6867a
Use ALLOC to allocate memory, from harald barth.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23709 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-28 12:57:47 +00:00
Love Hörnquist Åstrand
810f4208da
pass down HDB_F_CANON to hdb_fetch for tgs req too, use the server name in the request.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23680 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 11:11:34 +00:00
Love Hörnquist Åstrand
b5910292fc
make excpetion for known weak types
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23598 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:11:19 +00:00
Love Hörnquist Åstrand
7fcd266fdd
use krb5_set_error_message
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23316 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 04:32:32 +00:00
Love Hörnquist Åstrand
0205e1ebe3
Use unsigned where appropriate.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22870 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:50:28 +00:00
Ken'ichi Kamada
921fee6f9c
use the correct server name for logging.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22795 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-28 08:21:23 +00:00
Love Hörnquist Åstrand
424eede709
Rename tgs_build_referral to build_server_referral since it can be
...
used for AS-REQ too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22739 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:07:31 +00:00
Love Hörnquist Åstrand
203a4ad7f1
Send SERVER-REFERRAL data in rep.padata instead of auth_data in ticket.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22735 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:07:13 +00:00
Love Hörnquist Åstrand
294999cc14
kill trailing whitespace
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22733 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:07:05 +00:00
Love Hörnquist Åstrand
f57e7c4d5f
Better referrals support, use canonicalize flag.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22729 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:06:50 +00:00
Love Hörnquist Åstrand
50901132f0
Also check KDCOptions->canonicalize when looking for referrals requests.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22713 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:05:45 +00:00
Love Hörnquist Åstrand
b9f88cce4c
first version of the tgs referrals pathcheck
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22703 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:05:02 +00:00
Love Hörnquist Åstrand
5fed824f37
its vs it\'s etc. From Bjorn Sandell
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-14 20:04:50 +00:00
Love Hörnquist Åstrand
be8c8799d8
Should pass different key usage constants depending on whether or not
...
optional sub-session key was passed by the client for the check of
authorization data. The constant is used to derive "specific key" and
its values are specified in 7.5.1 of RFC4120.
Patch from Andy Polyakov.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22068 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-14 19:56:15 +00:00
Love Hörnquist Åstrand
86e58a1b60
Don't send auth data in referrals, microsoft clients have started to
...
not like that. Thanks to Andy Polyakov for excellent research.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22066 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-14 19:49:24 +00:00
Love Hörnquist Åstrand
4808b585af
More prettier printing of enctype, from KAMADA Ken'ichi.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21949 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-10-04 18:49:27 +00:00
Love Hörnquist Åstrand
4ad305a90c
Drop unused variable.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21262 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-21 15:18:37 +00:00
Love Hörnquist Åstrand
6c4ad61bd4
disable anonyous tgs requests
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21260 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-21 14:48:42 +00:00
Love Hörnquist Åstrand
85acea1b76
Don't check PAC on cross realm for now.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21258 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-21 14:11:01 +00:00
Love Hörnquist Åstrand
247866e443
Constify.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21041 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-10 06:21:12 +00:00
Love Hörnquist Åstrand
45ebb9c7f2
Only check service key for cross realm PACs.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20265 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-18 08:34:36 +00:00
Love Hörnquist Åstrand
126ea0e595
Don't check PACs on cross realm requests.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20254 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-17 07:52:01 +00:00
Love Hörnquist Åstrand
82f3dca5ec
Rename keys to be more obvious what they do.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19809 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 19:43:35 +00:00
Love Hörnquist Åstrand
7e21610a7c
Pass down server entry to verify_pac function.
...
from Andrew Bartlett <abartlet@samba.org >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19797 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 15:22:11 +00:00
Love Hörnquist Åstrand
bee6d08ff3
(tgs_build_reply): check if krb5_generate_random_keyblock failes.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19685 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 12:49:45 +00:00
Love Hörnquist Åstrand
8588cd9ebd
Scope etype.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19684 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 12:42:51 +00:00
Love Hörnquist Åstrand
f2807ae2c8
rename functions after export some more pac functions.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19672 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 11:02:33 +00:00
Love Hörnquist Åstrand
9b7ae5c640
Resign the PAC in tgsreq if we have a PAC.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19669 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 10:56:23 +00:00
Love Hörnquist Åstrand
9140e58024
Get right key for PAC krbtgt verification.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19643 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-03 19:34:27 +00:00
Love Hörnquist Åstrand
11c02517ae
Call callbacks for emulating a Windows Domain Controller.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19630 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-03 15:37:52 +00:00
Love Hörnquist Åstrand
9fed7e931e
(_kdc_tkt_add_if_relevant_ad): use _kdc_tkt_add_if_relevant_ad to add the SignedPath.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19260 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 21:16:03 +00:00
Love Hörnquist Åstrand
772ed07a25
Reply KRB5KRB_ERR_RESPONSE_TOO_BIG for too large packets when using
...
datagram based transports.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19163 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 14:17:58 +00:00
Love Hörnquist Åstrand
b9624a871d
Use KRB5_KU_OTHER_CKSUM for the impersonate checksum.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19081 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-21 05:14:43 +00:00
Love Hörnquist Åstrand
87500b6c61
(check_KRB5SignedPath): free KRB5SignedPath on successful completion
...
too, not just the error cases.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18827 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-22 15:54:37 +00:00
Love Hörnquist Åstrand
69883abf62
Prefix der primitives with der_.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18460 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-14 10:16:45 +00:00
Love Hörnquist Åstrand
8b981cc040
(tgs_parse_request): set cusec, not csec from auth->cusec.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18366 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-09 06:51:57 +00:00
Love Hörnquist Åstrand
c7b54c3372
Adapt to signature change of _krb5_principalname2krb5_principal.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18270 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-06 17:06:30 +00:00