1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/source4/heimdal_build
Isaac Boukris 2d2da2af26 kdc: sign ticket using Windows PAC
Split Windows PAC signing and verification logic, as the signing has to be when
the ticket is ready.

Create sign and verify the PAC KDC signature if the plugin did not, allowing
for S4U2Proxy to work, instead of KRB5SignedPath.

Use the header key to verify PAC server signature, as the same key used to
encrypt/decrypt the ticket should be used for PAC server signature, like U2U
tickets are signed witht the tgt session-key and not with the longterm key,
and so krbtgt should be no different and the header key should be used.

Lookup the delegated client in DB instead of passing the delegator DB entry.

Add PAC ticket-signatures and related functions.

Note: due to the change from KRB5SignedPath to PAC, S4U2Proxy requests
against new KDC will not work if the evidence ticket was acquired from
an old KDC, and vide versa.

Closes: #767

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14642
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14881

[jsutton@samba.org Backported from Heimdal commit
 2ffaba9401d19c718764d4bd24180960290238e9
 - Removed tests
 - Adapted to Samba's version of Heimdal
 - Addressed build failures with -O3
 - Added knownfails
]

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

[abartlet@samba.org backported from commit d7b03394a9
 due to conflicts in knownfail due to missing tests that crash the
 MIT KDC]
2021-10-26 12:00:27 +00:00
..
include Make HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE available in krb5.h 2020-08-07 03:23:43 +00:00
krb5
asn1_compile_wrapper.sh
config.h heimdal_build: silence warning: macro redefined 2020-11-10 06:53:42 +00:00
crypto-headers.h
et_compile_wrapper.sh
gssapi-glue.c
hdb-glue.c
ifaddrs.hin
kafs.h heimdal_build: provide a prototype with the dummy afs header-only function stubs 2020-08-07 03:23:43 +00:00
krb5-glue.c
lexyacc.sh Compile .l files (flex) with the waf rule at runtime 2020-08-07 03:23:44 +00:00
perl_path_wrapper.sh
print_version.h
replace.c s4:heimdal_build: make use of libreplace getprogname() replacement 2018-11-20 01:33:33 +01:00
roken.h heimdal: do not compile weak crypto 2019-11-19 14:48:41 +00:00
version.c
vis.h
wscript_build kdc: sign ticket using Windows PAC 2021-10-26 12:00:27 +00:00
wscript_configure heimdal_build: Do not allow warnings in the heimdal code! 2020-08-07 03:23:44 +00:00