Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/su



Module Name:    src
Committed By:   riastradh
Date:           Tue Dec  1 10:25:16 UTC 2026

Modified Files:
        src/usr.bin/su: su.c

Log Message:
su(1): Quietly check for service key before trying krb5 password.

Don't provoke any Kerberos-related network traffic until we confirm
that we have a service key in the default keytab for host/$(hostname)
in some realm; without any such service key, we have no hope of
authenticating a service ticket, so there is no point in even trying
to verify the target user's password by acquiring Kerberos with it.

This way, simply having a krb5.conf -- or removing our local Heimdal
patch to make krb5_init_context fail when there is no krb5.conf --
won't cause su(1) to be subject to Kerberos-induced network delays
unless you _also_ configure a host service key for it to use.

This change applies only to the MKPAM=no MKKERBEROS=yes case.

PR lib/61084: kinit: krb5_init_context failed: 6


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/usr.bin/su/su.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