mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
Disallow Kerberos when S/Key is required. Fixes PR #339.
Submitted by: Paul Traina <pst@Shockwave.com>
This commit is contained in:
parent
ae60406da6
commit
ed8be72c29
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7800
@ -274,6 +274,17 @@ main(argc, argv)
|
||||
|
||||
if (pwd) {
|
||||
#ifdef KERBEROS
|
||||
#ifdef SKEY
|
||||
/*
|
||||
* Do not allow user to type in kerberos password
|
||||
* over the net (actually, this is ok for encrypted
|
||||
* links, but we have no way of determining if the
|
||||
* link is encrypted.
|
||||
*/
|
||||
if (!permit_password) {
|
||||
rval = 1; /* failed */
|
||||
} else
|
||||
#endif
|
||||
rval = klogin(pwd, instance, localhost, p);
|
||||
if (rval != 0 && rootlogin && pwd->pw_uid != 0)
|
||||
rootlogin = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user