Source-Changes archive

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

CVS commit: src/usr.bin/login



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

Modified Files:
        src/usr.bin/login: k5login.c login.c

Log Message:
login(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 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 login(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.34 -r1.35 src/usr.bin/login/k5login.c
cvs rdiff -u -r1.105 -r1.106 src/usr.bin/login/login.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