commit | c3aa3dd70c73312423797909af8d5fcad10db235 | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Sun Oct 28 22:34:52 2001 +1100 |
committer | Damien Miller <djm@mindrot.org> | Sun Oct 28 22:34:52 2001 +1100 |
tree | 6fca7304df2ef680ad9bc4eac07a9944bcec247d | |
parent | 33cdd9ee7b9261cd3cc8e35fd21f3676eeb12cbe [diff] [blame] |
- (djm) Disconnect if no tty and PAM reports password expired
diff --git a/session.c b/session.c index e9d8ceb..10cefdb 100644 --- a/session.c +++ b/session.c
@@ -432,6 +432,9 @@ #if defined(USE_PAM) do_pam_session(s->pw->pw_name, NULL); do_pam_setcred(1); + if (is_pam_password_change_required()) + packet_disconnect("Password change required but no " + "TTY available"); #endif /* USE_PAM */ /* Fork the child. */