<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">I have a patch for better pam_tally support.  It calls the pam_acct_mgmt to reset the failed logins after a successful login.  I also added a return of Signon successful which I have a few RANCID scripts looking for.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>--- pwlib.c     2006-12-13 09:42:57.000000000 -0700</DIV><DIV>+++ ../../tacacs+-F4.0.4.14/pwlib.c     2007-08-29 10:07:34.733845000 -0600</DIV><DIV>@@ -71,8 +71,9 @@</DIV><DIV>            report(LOG_DEBUG, "Password has not expired %s",</DIV><DIV>                   exp_date ? exp_date : "&lt;no expiry date set&gt;");</DIV><DIV>        data-&gt;status = TAC_PLUS_AUTHEN_STATUS_PASS;</DIV><DIV>+       data-&gt;server_msg = tac_strdup("Signon successful.");</DIV><DIV>        return;</DIV><DIV>     case PW_EXPIRING:</DIV><DIV>        if (debug &amp; DEBUG_PASSWD_FLAG)</DIV><DIV>@@ -590,8 +591,9 @@</DIV><DIV>     }</DIV><DIV>     switch((err = pam_authenticate(pamh, PAM_SILENT))) {</DIV><DIV>     case PAM_SUCCESS:</DIV><DIV>+       pam_acct_mgmt(pamh, PAM_SILENT);</DIV><DIV>        pam_end(pamh, err);</DIV><DIV>        if (debug &amp; DEBUG_PASSWD_FLAG)</DIV><DIV>            report(LOG_DEBUG, "pam_verify returns 1");</DIV><DIV>        return(1);</DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><B style="font-weight: bold; "><FONT class="Apple-style-span" face="Arial"><SPAN class="Apple-style-span" style="font-family: Arial; font-weight: bold; "><SPAN class="Apple-style-span" style="font-family: Arial; font-weight: bold; "><SPAN class="Apple-style-span" style="font-family: Arial; font-weight: bold; "><SPAN class="Apple-style-span" style="font-family: Arial; font-weight: bold; ">Chris Recker</SPAN></SPAN></SPAN></SPAN></FONT></B></DIV><DIV><FONT class="Apple-style-span" face="Arial"><SPAN class="Apple-style-span" style="font-family: Arial; "><SPAN class="Apple-style-span" style="font-family: Arial; "><SPAN class="Apple-style-span" style="font-family: Arial; "><SPAN class="Apple-style-span" style="font-family: Arial; ">Network Engineer</SPAN></SPAN></SPAN></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><SPAN class="Apple-style-span" style="font-family: Arial; "><SPAN class="Apple-style-span" style="font-family: Arial; "><SPAN class="Apple-style-span" style="font-family: Arial; "><SPAN class="Apple-style-span" style="font-family: Arial; ">ViaWest, Inc.</SPAN></SPAN></SPAN></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><SPAN class="Apple-style-span" style="font-family: Arial; "><SPAN class="Apple-style-span" style="font-family: Arial; "><SPAN class="Apple-style-span" style="font-family: Arial; "><SPAN class="Apple-style-span" style="font-family: Arial; ">Office: </SPAN></SPAN></SPAN><FONT class="Apple-style-span" face="Helvetica">303.874.5227</FONT></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><SPAN class="Apple-style-span" style="font-family: Arial; "><SPAN class="Apple-style-span" style="font-family: Arial; "><SPAN class="Apple-style-span" style="font-family: Arial; "><SPAN class="Apple-style-span" style="font-family: Arial; ">Fax: 303.885.4999</SPAN></SPAN></SPAN></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><SPAN class="Apple-style-span" style="font-family: Arial; "><SPAN class="Apple-style-span" style="font-family: Arial; ">www.viawest.net</SPAN></SPAN></FONT></DIV></SPAN></SPAN></SPAN><BR class="Apple-interchange-newline"></SPAN></SPAN> </DIV><BR></DIV></BODY></HTML>