Bug 3246 - pam account check prevents passwdaliases from working
Summary: pam account check prevents passwdaliases from working
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Smart card (show other bugs)
Version: 2.1.0
Hardware: PC All
: P2 Normal
Target Milestone: MediumPrio
Assignee: Pierre Ossman
URL:
Keywords:
: 3117 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-11 10:30 CEST by Pierre Ossman
Modified: 2019-09-24 12:48 CEST (History)
3 users (show)

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2009-09-11 10:30:25 CEST
We need to add to the documentation that you need to disable the account checks when you are using the automatic smart card connection feature. Several distributions create a PAM configuration where it will try to validate the account using the card DN (which of course fails).
Comment 1 Peter Åstrand cendio 2012-03-19 14:34:51 CET
On CentOS 6, it was necessary to add "broken_shadow" after the pam_unix account line.
Comment 2 Henrik Andersson cendio 2014-03-28 08:36:18 CET
(In reply to comment #1)
> On CentOS 6, it was necessary to add "broken_shadow" after the pam_unix account
> line.

This is also a valid fix for Ubuntu 12.04
Comment 3 Samuel Mannehed cendio 2016-02-11 16:02:20 CET
To clarify:

What you need to do on most systems is to disable the account checks in /etc/pam.d/sshd

Example:

--- /etc/pam.d/sshd.old	2016-02-11 15:57:26.139521826 +0100
+++ /etc/pam.d/sshd	2016-02-11 12:42:14.950118283 +0100
@@ -4,6 +4,7 @@
 auth       include      postlogin
 # Used with polkit to reauthorize users in remote sessions
 -auth      optional     pam_reauthorize.so prepare
+account    sufficient   pam_permit.so
 account    required     pam_nologin.so
 account    include      password-auth
 password   include      password-auth
Comment 4 Pierre Ossman cendio 2017-04-18 14:14:07 CEST
*** Bug 3117 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.