Bug 177748 - mail-mta/courier uses pam_stack
Bug#: 177748 Product:  Gentoo Linux Version: 2007.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: maintainer-needed@gentoo.org Reported By: ed@catmur.co.uk
Component: Applications
URL: 
Summary: mail-mta/courier uses pam_stack
Keywords:  
Status Whiteboard: 
Opened: 2007-05-09 05:42 0000
Description:   Opened: 2007-05-09 05:42 0000
/etc/pam.d/esmtp and /etc/pam.d/webmail have:

auth       required     pam_stack.so service=system-auth
account    required     pam_stack.so service=system-auth
session    required     pam_stack.so service=system-auth

This breaks with sys-libs/pam-0.99.7.1, where pam_stack is removed.

These should be:

auth       include      system-auth
account    include      system-auth
session    include      system-auth

------- Comment #1 From Ed Catmur 2007-05-14 05:18:04 0000 -------
Created an attachment (id=119176) [details]
pam-include-not-pam_stack.patch

Patch.

------- Comment #2 From Laurence Withers 2007-06-11 19:37:39 0000 -------
I can confirm that when upgrading PAM to 0.99.7.1, courier does stop working
due to pam_stack.so no longer being available. Changing the files in /etc/pam.d
according to the patch also fixes the problem (I can now send/receive email
correctly).

A quick google search shows up
http://www.mail-archive.com/gentoo-dev%40gentoo.org/msg05454.html , which
explains that pam_stack was a non-standard module deprecated in favour of the
"include" control statement introduced in linux-pam-0.78. Both have the
identical result of including the rules from another file in /etc/pam.d.

------- Comment #3 From Diego E. 'Flameeyes' Pettenò 2007-07-04 19:56:27 0000 -------
I've applied it in a revbump of both ~arch and stable, in light of the plans
for stabling Linux-PAM 0.99.