opnsense-src/lib/libpam
Lexi Winter 9503ed0dfd pam_ksu: Fix crash when no ticket is present
When building with MIT Kerberos, pam_ksu crashes if the user doesn't
have a ticket because default_principal is never populated in
get_su_principal().

Change the compatibility function to use krb5_build_principal_alloc_va
instead, and make its interface compatible with the equivalent Heimdal
function.

Despite what the comment says, we do free the default principal later
in get_su_principal() so this shouldn't cause any leaks.

Reviewed by:		des, philip, cy, jhb
Differential Revision:	https://reviews.freebsd.org/D51829
2025-08-09 07:16:45 +01:00
..
libpam Upgrade to OpenPAM Zingiber. 2025-05-31 14:15:55 +02:00
modules pam_ksu: Fix crash when no ticket is present 2025-08-09 07:16:45 +01:00
pam.d libpam: provide a real /etc/pam.d/ftp 2025-05-15 01:02:52 +01:00
static_libpam Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00