Contents of /trunk/netkit-rsh/patches/netkit-rsh-0.17-pam-nologin.patch
Parent Directory | Revision Log
Revision 153 -
(show annotations)
(download)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 531 byte(s)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 531 byte(s)
-import
1 | --- netkit-rsh-0.17-pre20000412/rlogind/auth.c.orig Tue Mar 19 11:46:29 2002 |
2 | +++ netkit-rsh-0.17-pre20000412/rlogind/auth.c Wed Apr 17 16:35:43 2002 |
3 | @@ -127,7 +127,10 @@ |
4 | |
5 | network_confirm(); |
6 | retval = attempt_auth(); |
7 | - if (retval != PAM_SUCCESS) { |
8 | + if ((retval == PAM_ACCT_EXPIRED) || (retval == PAM_PERM_DENIED)) { |
9 | + syslog(LOG_ERR, "PAM authentication denied for in.rlogind"); |
10 | + exit(1); |
11 | + } else if (retval != PAM_SUCCESS) { |
12 | syslog(LOG_ERR, "PAM authentication failed for in.rlogind"); |
13 | return -1; |
14 | } |