Kerberos V5 is an authentication system developed at MIT.
Abridged from the User Guide:
Under Kerberos, a client sends a request for a ticket to the
Key Distribution Center (KDC). The KDC creates a ticket-granting
ticket (TGT) for the client, encrypts it using the client's
password as the key, and sends the encrypted TGT back to the
client. The client then attempts to decrypt the TGT, using
its password. If the client successfully decrypts the TGT, it
keeps the decrypted TGT, which indicates proof of the client's
identity. The TGT permits the client to obtain additional tickets,
which give permission for specific services.
Since Kerberos negotiates authenticated, and optionally encrypted,
communications between two points anywhere on the internet, it
provides a layer of security that is not dependent on which side of a
firewall either client is on.
The Kerberos V5 package is designed to be easy to use. Most of the
commands are nearly identical to UNIX network programs you are already
used to. Kerberos V5 is a single-sign-on system, which means that you
have to type your password only once per session, and Kerberos does
the authenticating and encrypting transparently.
Jacques Vidrine <n@nectar.com>
===> The following configuration options are available for krb5-121-1.21.3_3:
DNS_FOR_REALM=off: Enable DNS lookups for Kerberos realm names
DOCS=on: Build and/or install documentation
EXAMPLES=on: Build and/or install examples
LDAP=off: LDAP protocol support
LMDB=off: OpenLDAP Lightning Memory-Mapped Database support
NLS=on: Native Language Support
====> Command line editing for kadmin and ktutil: you can only select none or one of them
READLINE=on: Command line editing via libreadline
LIBEDIT=off: Command line editing via libedit
LIBEDIT_BASE=off: Use libedit in FreeBSD base
====> Options available for the radio CRYPTO: you can only select none or one of them
CRYPTO_BUILTIN=on: Use crypto built into KRB5
CRYPTO_OPENSSL=off: Use OpenSSL crypto
===> Use 'make config' to modify these settings
Reason:
The KRB5_{PDF,HTML} options have been consolidated into canonical DOCS option
to match the name with other ports and the description from Mk/bsd.options.desc.mk.
Port Moves
port deleted on 2026-06-30 REASON: Has expired: Unpatched vulnerabilities, no longer supported by MIT
security/krb5-12?: Fix reachable assert when importing krb5 names
If a name token contains trailing garbage, error out from
krb5_gss_import_name() instead of crashing the process with an
assertion failure.
Commit message details obtained from upstream commit.
Obtained from: upstream commit 07818f1fd
Reported by: Aisle Research (Ze Sheng, Dmitrijs Trizna,
Luigino Camastra, Guido Vranken) to krb5-bugs
MFH: 2026Q2
devel/autoconf: Update to 2.73
cad/alliance, databases/proxysql, deskutils/growl-for-linux,
emulators/wine-proton, net/yate, sysutils/grub2-efi,
sysutils/grub2-pcbsd: Add USE_CSTD=gnu11 because autoconf 2.73 tries
to use C23 and these ports are broken with that.
PR: 293963
Exp-run by: antoine
security/krb5-*: Rename BUILTIN and OPENSSL options
Rename the BUILTIN option to CRYPTO_BUILTIN and rename the OPENSSL
option to CRYPTO_OPENSSL.
Suggested by: michaelo
security/krb5*: Add CRYPTO radio button
Base MIT KRB5 is linked against OpenSSL to supply its crypto. This
was done to avoid symbol conflicts within ssh (i.e. a buildworld
failure). This now causes the port and base inconsistencies.
Add a crypto option to allow the user to select either builtin or
openssl crypto.
PR: 291695
security/krb5-12{0,1}: Consolidate KRB5_{PDF,HTML} options into canonical DOCS
option
Let users globally decide whether they want to have these docs in their ports.
PR: 287340
Approved by: otis (mentor), cy (maintainer)
Differential Revision: https://reviews.freebsd.org/D50775
security/krb5*: Fix DOCS
Fix docs install by searching for docs in the correct source dir.
Without this fix docs were never installed. They are installed now.
security/krb5*: Flavorize with default and ldap flavors
This provides a binary package to users who require MIT KRB5 with LDAP
support. This patch does not change the current, now default, package
name.
PR: 277015
security/krb5-1*: Fix plist error
Fix:
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: @dir %%DOCSDIR%%
===> Error: Plist issues found.
*** Error code 1
security/krb5*: Remve kdc wrappers script
Remove the kdc script that allowed krb5kdc to be stared using
the /etc/rc.d/kdc rc script. This is no longer needed since
src/ 91f78c32befa.
security/krb5*: Allow the user to specify state directory locations
localstatedir and runstatedir are set to ${PREFIX}/var and
${PREFIX}/var/run respectively. Users who wish to put their KDC
DB elsewhere can set the following in make.conf:
KRB5_LOCALSTATEDIR=/va
KRB5_RUNSTATEDIR=/var/run.
Unfortunately defaulting to /var instead of the current default would
result in MIT KDC not finding its KDC DB files. This would be disruptive
to all MIT KDC users. But new users of MIT KRB5 KDC can set the pathname
above as desired.
PR: 267560
security/krb5-121: Update to 1.21.2
Major changes in 1.21.2 (2023-08-14)
====================================
This is a bug fix release.
* Fix double-free in KDC TGS processing [CVE-2023-39975].
MFH: 2023Q3
security/krb5-121: Fix double-free in KDC TGS processing
Upstream's commit log message:
When issuing a ticket for a TGS renew or validate request, copy only
the server field from the outer part of the header ticket to the new
ticket. Copying the whole structure causes the enc_part pointer to be
aliased to the header ticket until krb5_encrypt_tkt_part() is called,
resulting in a double-free if handle_authdata() fails.
[ghudson@mit.edu: changed the fix to avoid aliasing enc_part rather
than check for aliasing before freeing; rewrote commit message]
CVE-2023-39975:
In MIT krb5 release 1.21, an authenticated attacker can cause a KDC to
free the same pointer twice if it can induce a failure in
authorization data handling.
ticket: 9101 (new)
tags: pullup
target_version: 1.21-next
Obtained from: Upstream git commit 88a1701b4
MFH: 2023Q3
security/krb5: Support libedit in base
Even though libedit is in base FreeBSD, the krb5 ports still depend
on devel/libedit when the LIBEDIT option is selected. This is because
./configure uses pkgconf to determine if libedit exists, ignoring
libedit in FreeBSD base. This patch adds a new LIBEDIT_BASE option
which enables LIBEDIT (LIBEDIT_BASE) without installing the
devel/libedit port.
The GNU READLINE option will remain the default for now but it is
planned to switch the default to LIBEDIT_BASE at some point. This is
to reduce the dependency on GNU software and to bring it more into
line with the planned MIT KRB5 import into FreeBSD base.
security/krb5*: Disable NLS when option is deselected
When the NLS option is deselected, ./configure reverts to
enable_nls=check. As some prerequisites do require NLS, NLS is
always enabled even when deslected. This ensures that when NLS
is not wanted, that it is not used, regardless of its install status.
security/krb5-121: Welcome new krb5 1.21
Welcome the new krb5-121 (1.21) from MIT.
krb5-119 is now deprecated and scheduled for removal a year from
now.