From c0aee78a271c2dcfbd462a0d86c9e98f5034152e Mon Sep 17 00:00:00 2001 From: John Dennis Date: Fri, 22 Jul 2005 21:15:59 +0000 Subject: [PATCH] fix bug #149673, add dummy PAM_TTY --- dovecot-pam-setcred.patch | 14 ++++++++++++-- dovecot.spec | 5 ++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/dovecot-pam-setcred.patch b/dovecot-pam-setcred.patch index 8de888f..0c135f1 100644 --- a/dovecot-pam-setcred.patch +++ b/dovecot-pam-setcred.patch @@ -1,5 +1,5 @@ ---- dovecot-0.99.13.orig/src/auth/passdb-pam.c 2004-12-19 00:25:15.000000000 -0500 -+++ dovecot-0.99.13/src/auth/passdb-pam.c 2005-02-02 16:18:59.177660000 -0500 +--- passdb-pam.c.pam-setcred 2005-01-30 02:52:53.000000000 -0500 ++++ dovecot-0.99.14/src/auth/passdb-pam.c 2005-07-22 16:38:16.000000000 -0400 @@ -180,12 +180,37 @@ } @@ -38,3 +38,13 @@ if ((status = pam_acct_mgmt(pamh, 0)) != PAM_SUCCESS) { *error = t_strdup_printf("pam_acct_mgmt(%s) failed: %s", +@@ -228,6 +253,9 @@ + str = t_strdup_printf("pam_start(%s) failed: %s", + user, pam_strerror(pamh, status)); + } else { ++ /* fix bug 149673, need dummy TTY for pam_access */ ++ /* FIXME: should we check and report an error for PAM_TTY? */ ++ pam_set_item(pamh, PAM_TTY, "dovecot"); + status = pam_auth(pamh, user, &str); + if ((status2 = pam_end(pamh, status)) == PAM_SUCCESS) { + /* FIXME: check for PASSDB_RESULT_UNKNOWN_USER diff --git a/dovecot.spec b/dovecot.spec index 9586477..9df9b1b 100644 --- a/dovecot.spec +++ b/dovecot.spec @@ -1,7 +1,7 @@ Summary: Dovecot Secure imap server Name: dovecot Version: 0.99.14 -Release: 5.fc4 +Release: 6.fc5 License: LGPL Group: System Environment/Daemons @@ -172,6 +172,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Jul 22 2005 John Dennis - 0.99.14-6.fc5 +- fix bug #149673, add dummy PAM_TTY + * Thu Apr 28 2005 John Dennis - 0.99.14-5.fc4 - fix bug #156159 insecure location of restart flag file