<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Candara;
panose-1:2 14 5 2 3 3 3 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Good Afternoon,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We have a RHEL 7 server that is AD authenticated via Kerberos/realmd/sssd. I previously had pam_tally2 configured in the system-auth & password-auth modules to deny=3 unlock=1800. Whenever my network admin would login to a network device
regardless if the login was correct it would lock her out. I had to uncomment the pam_tally2 sections of the files to alleviate the lockout issues. Is there a config I’m missing that would allow for using pam_tally2 but not lockout users?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Current configs:<o:p></o:p></p>
<p class="MsoNormal">/etc/pam.d/system-auth & password-auth<o:p></o:p></p>
<p class="MsoNormal">auth required pam_env.so<o:p></o:p></p>
<p class="MsoNormal">#auth required pam_tally2.so deny=3 unlock_time=1800<o:p></o:p></p>
<p class="MsoNormal">auth [default=1 ignore=ignore success=ok] pam_succeed_if.so uid >= 1000 quiet<o:p></o:p></p>
<p class="MsoNormal">auth [default=1 ignore=ignore success=ok] pam_localuser.so<o:p></o:p></p>
<p class="MsoNormal">auth sufficient pam_unix.so nullok try_first_pass<o:p></o:p></p>
<p class="MsoNormal">auth requisite pam_succeed_if.so uid >= 1000 quiet_success<o:p></o:p></p>
<p class="MsoNormal">auth sufficient pam_sss.so forward_pass<o:p></o:p></p>
<p class="MsoNormal">auth required pam_deny.so<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">account required pam_unix.so<o:p></o:p></p>
<p class="MsoNormal">#account required pam_tally2.so<o:p></o:p></p>
<p class="MsoNormal">account sufficient pam_localuser.so<o:p></o:p></p>
<p class="MsoNormal">account sufficient pam_succeed_if.so uid < 1000 quiet<o:p></o:p></p>
<p class="MsoNormal">account [default=bad success=ok user_unknown=ignore] pam_sss.so<o:p></o:p></p>
<p class="MsoNormal">account required pam_permit.so<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">password requisite pam_cracklib.so try_first_pass retry=3 minlen=12 minclass=3 lcredit=1 dcredit=1 ocredit=1 ucredit=1 difok=1<o:p></o:p></p>
<p class="MsoNormal">password sufficient pam_unix.so md5 remember=10 shadow nullok try_first_pass use_authtok<o:p></o:p></p>
<p class="MsoNormal">password sufficient pam_sss.so use_authtok<o:p></o:p></p>
<p class="MsoNormal">password required pam_deny.so<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">session optional pam_keyinit.so revoke<o:p></o:p></p>
<p class="MsoNormal">session required pam_limits.so<o:p></o:p></p>
<p class="MsoNormal">-session optional pam_systemd.so<o:p></o:p></p>
<p class="MsoNormal">session optional pam_oddjob_mkhomedir.so umask=0077<o:p></o:p></p>
<p class="MsoNormal">session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid<o:p></o:p></p>
<p class="MsoNormal">session required pam_unix.so<o:p></o:p></p>
<p class="MsoNormal">session optional pam_sss.so<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">/etc/pam.d/tac_plus<o:p></o:p></p>
<p class="MsoNormal">auth required pam_nologin.so<o:p></o:p></p>
<p class="MsoNormal">auth include system-auth<o:p></o:p></p>
<p class="MsoNormal">account include system-auth<o:p></o:p></p>
<p class="MsoNormal">password include system-auth<o:p></o:p></p>
<p class="MsoNormal">session include system-auth<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any help is much appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Candara",sans-serif;color:#197079">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Candara",sans-serif;color:#197079"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Candara",sans-serif;color:#197079">Ann Morton<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Candara",sans-serif;color:#197079">Interim Manager<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Candara",sans-serif;color:#197079">Server Response Team<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Candara",sans-serif;color:#197079">NWRDC<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Candara",sans-serif;color:#197079">850-645-3540<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Candara",sans-serif;color:#0070C0"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>