diff options
Diffstat (limited to 'auth-pam.c')
-rw-r--r-- | auth-pam.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/auth-pam.c b/auth-pam.c index 67a851d1b..8ceb26917 100644 --- a/auth-pam.c +++ b/auth-pam.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include "xmalloc.h" | 34 | #include "xmalloc.h" |
35 | #include "servconf.h" | 35 | #include "servconf.h" |
36 | 36 | ||
37 | RCSID("$Id: auth-pam.c,v 1.6 2000/06/12 06:38:54 djm Exp $"); | 37 | RCSID("$Id: auth-pam.c,v 1.7 2000/06/18 04:07:04 djm Exp $"); |
38 | 38 | ||
39 | #define NEW_AUTHTOK_MSG \ | 39 | #define NEW_AUTHTOK_MSG \ |
40 | "Warning: You password has expired, please change it now" | 40 | "Warning: You password has expired, please change it now" |
@@ -246,6 +246,12 @@ void start_pam(struct passwd *pw) | |||
246 | PAM_STRERROR((pam_handle_t *)pamh, pam_retval)); | 246 | PAM_STRERROR((pam_handle_t *)pamh, pam_retval)); |
247 | } | 247 | } |
248 | 248 | ||
249 | pam_retval = pam_set_item((pam_handle_t *)pamh, PAM_TTY, "ssh"); | ||
250 | if (pam_retval != PAM_SUCCESS) { | ||
251 | fatal("PAM set tty failed: %.200s", | ||
252 | PAM_STRERROR((pam_handle_t *)pamh, pam_retval)); | ||
253 | } | ||
254 | |||
249 | fatal_add_cleanup(&pam_cleanup_proc, NULL); | 255 | fatal_add_cleanup(&pam_cleanup_proc, NULL); |
250 | } | 256 | } |
251 | 257 | ||