version 1.43, 2001/08/12 02:45:33 |
version 1.44, 2002/01/06 21:59:15 |
|
|
/* |
/* |
* If we do not have the force flag authenticate the user |
* If we do not have the force flag authenticate the user |
*/ |
*/ |
if (fflag) |
if (!fflag) { |
authok = AUTH_SECURE; |
|
else { |
|
lastchance = |
lastchance = |
login_getcaptime(lc, "password-dead", 0, 0) != 0; |
login_getcaptime(lc, "password-dead", 0, 0) != 0; |
if (lastchance) |
if (lastchance) |
|
|
if (pwd == 0) |
if (pwd == 0) |
goto failed; |
goto failed; |
|
|
authok &= AUTH_SECURE; |
|
|
|
/* |
/* |
* If trying to log in as root on an insecure terminal, |
* If trying to log in as root on an insecure terminal, |
* refuse the login attempt unless the authentication |
* refuse the login attempt unless the authentication |
* style explicitly says a root login is okay. |
* style explicitly says a root login is okay. |
*/ |
*/ |
if (authok == 0 && pwd && rootlogin && !rootterm(tty)) |
if (pwd && rootlogin && !rootterm(tty)) |
goto failed; |
goto failed; |
|
|
if (fflag) { |
if (fflag) { |