NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/61084 CVS commit: src/crypto/external/bsd/heimdal/dist/lib/krb5
The following reply was made to PR lib/61084; it has been noted by GNATS.
From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/61084 CVS commit: src/crypto/external/bsd/heimdal/dist/lib/krb5
Date: Tue, 1 Dec 2026 10:30:48 +0000
Module Name: src
Committed By: riastradh
Date: Tue Dec 1 10:30:48 UTC 2026
Modified Files:
src/crypto/external/bsd/heimdal/dist/lib/krb5: context.c
Log Message:
heimdal: Stop requiring a config file to use krb5.
With this change, you can now do `kinit jrandomuser%EXAMPLE.COM@localhost' to
log into client-side single-sign-on out of the box, no configuration
required.
We had previously been carrying this local patch for decades in order
to paper over bad user experience (as well as what is essentially a
vulnerability) in kerberized non-pam login(1) and su(1), where they
would wait for network delays for Kerberos DNS autoconfiguration even
if they have no Kerberos service key to actually do any meaningful
authentication checks -- the local patch turned the existence of
/etc/krb5.conf into a systemwide knob for whether any application is
allowed to try Kerberos at all.
Unfortunately, that systemwide knob also affects client-side SSO
applications, not just system verification of user credentials.
To make sure that reverting this local patch doesn't create new
security vulnerabilities or stupid network delays on non-kerberized
systems, I have also adapted login(1), su(1), pam_krb5(8), and
pam_ksu(8) to quietly (without any log messages or network traffic)
verify that they have a Kerberos service key before they try to
verify passwords with Kerberos. These are all the callers in src of:
- krb5_verify_user*
- krb5_verify_init_creds*
- krb5_rd_req on a packet obtained by krb5_mk_req from a ticket just
obtained with krb5_get_init_creds
Exceptions:
- openldap's slapd kerberos.c module, which we don't build or ship
- openssh's KerberosAuthentication, which is default off on the
server and has been for a very long time if not always
(Most of these paths -- except for non-pam login(1), which was a
straggler from NetBSD-SA2023-006 -- already required a service key to
verify the ticket; they just triggered unnecessary network traffic
and delays before checking for a service key first.)
PR lib/61084: kinit: krb5_init_context failed: 6
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 \
src/crypto/external/bsd/heimdal/dist/lib/krb5/context.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index