1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/source4/kdc
Joseph Sutton 9936038fae s4:kdc: Don't pass empty PAC buffers to krb5_pac_add_buffer()
Heimdal will no longer allow us to pass a dummy zero-length buffer to
krb5_pac_add_buffer(), so we have to pass a buffer of length 1 instead.

This is an adaption to Heimdal:

commit 190263bb7a56fc775b50a6cd0dc91820d2b2e5eb
Author: Jeffrey Altman <jaltman@secure-endpoints.com>
Date:   Wed Jan 19 22:55:33 2022 -0500

    assert non-NULL ptrs before calling mem funcs

    The definitions of memcpy(), memmove(), and memset() state that
    the behaviour is undefined if any of the pointer arguments are
    NULL, and some compilers are known to make use of this to
    optimise away existing NULL checks in the source.

    Change-Id: I489bc256e3eac7ff41d91becb0b43aba73dbb3f9
    Link: https://www.imperialviolet.org/2016/06/26/nonnull.html

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2022-03-01 17:11:35 +00:00
..
mit-kdb s4:mitkdc: Call krb5_pac_init() in kdb_samba_db_sign_auth_data() 2021-12-15 03:41:32 +00:00
db-glue.c s4:kdc: Set supported enctypes in KDC entry 2022-01-19 20:50:35 +00:00
db-glue.h s4:kdc/hdb: Store and retrieve a FX-COOKIE value 2022-01-19 20:50:35 +00:00
hdb-samba4-plugin.c s4:kdc: Update to match updated Heimdal's new HDB version 2022-01-19 20:50:35 +00:00
hdb-samba4.c s4:kdc: Translate HDB flags to SDB flags 2022-01-28 13:33:22 +00:00
kdc-glue.c s4:kdc: Update to match updated Heimdal's new HDB version 2022-01-19 20:50:35 +00:00
kdc-glue.h s4:kdc: Fix build failure by including <heimbase.h> 2022-01-19 20:50:35 +00:00
kdc-heimdal.c s4:kdc: Set require_pac and no-ENC_TS in FAST for new Heimdal import 2022-01-19 20:50:35 +00:00
kdc-proxy.c s4: rename source4/smbd/ to source4/samba/ 2020-11-27 10:07:18 +00:00
kdc-proxy.h s4-kdc: Create a kdc-proxy.h header file 2016-06-18 23:32:27 +02:00
kdc-server.c s4: rename source4/smbd/ to source4/samba/ 2020-11-27 10:07:18 +00:00
kdc-server.h s4-kdc: Allow to set the keytab_name in the kdc_server structure 2016-09-13 00:19:24 +02:00
kdc-service-mit.c s4: rename source4/smbd/ to source4/samba/ 2020-11-27 10:07:18 +00:00
kdc-service-mit.h s4-kdc: restore MIT KDC backend 2018-11-09 17:52:30 +01:00
kpasswd_glue.c samdb: Add remote address to connect 2018-05-10 20:02:23 +02:00
kpasswd_glue.h s4-kdc_kpasswd: split out some code to a KPASSWD_GLUE subsystem. 2015-07-21 19:04:14 +02:00
kpasswd-helper.c samdb: Add remote address to connect 2018-05-10 20:02:23 +02:00
kpasswd-helper.h s4-kdc: Add a kpasswd_samdb_set_password() helper function 2016-09-13 00:19:24 +02:00
kpasswd-service-heimdal.c s4: rename source4/smbd/ to source4/samba/ 2020-11-27 10:07:18 +00:00
kpasswd-service-mit.c s4: rename source4/smbd/ to source4/samba/ 2020-11-27 10:07:18 +00:00
kpasswd-service.c s4:kpasswd: Check return code of cli_credentials_set_conf() 2021-06-29 02:19:35 +00:00
kpasswd-service.h s4-kdc: Add a new kpasswd service implementation 2016-09-13 00:19:25 +02:00
ktutil.c ktutil: Print the numeric enctype if krb5_enctype_to_string() fails 2021-08-06 05:53:44 +00:00
mit_kdc_irpc.c s4: rename source4/smbd/ to source4/samba/ 2020-11-27 10:07:18 +00:00
mit_kdc_irpc.h s4-kdc: Add MIT KRB5 based irpc service for PAC validation 2017-04-29 23:31:09 +02:00
mit_samba.c s4:kdc: Add PAC_ATTRIBUTES integration for Heimdal 2022-01-19 20:50:35 +00:00
mit_samba.h s4:mitkdc: Add support for pac_attrs and requester_sid 2021-12-15 03:41:32 +00:00
pac-glue.c s4:kdc: Don't pass empty PAC buffers to krb5_pac_add_buffer() 2022-03-01 17:11:35 +00:00
pac-glue.h s4:kdc: Add PAC_ATTRIBUTES integration for Heimdal 2022-01-19 20:50:35 +00:00
samba_kdc.h s4:kdc: Set supported enctypes in KDC entry 2022-01-19 20:50:35 +00:00
sdb_to_hdb.c s4:kdc: Set entry.flags.force_canonicalize to override the new Heimdal behaviour 2022-01-19 20:50:35 +00:00
sdb_to_kdb.c CVE-2019-14870: mit-kdc: enforce delegation_not_allowed flag 2019-12-10 10:44:01 +00:00
sdb.c s4-kdc: Remove unused etypes from sdb structure 2016-09-26 06:08:09 +02:00
sdb.h s4:kdc: Add a HDB to SDB mask 2022-01-28 12:36:34 +00:00
wdc-samba4.c s4:kdc: Return PA-SUPPORTED-ENCTYPES 2022-01-19 20:50:35 +00:00
wscript_build HEIMDAL: move code from source4/heimdal* to third_party/heimdal* 2022-01-19 21:41:59 +00:00