| Summary: | AIX OpenSSH allows too many failing login attempts | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Matt Small <matt.small> | ||||
| Component: | sshd | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> | ||||
| Status: | ASSIGNED --- | ||||||
| Severity: | normal | CC: | defrayable | ||||
| Priority: | P2 | ||||||
| Version: | -current | ||||||
| Hardware: | All | ||||||
| OS: | AIX | ||||||
| Attachments: |
|
||||||
|
Description
Matt Small
2004-07-31 09:22:22 AEST
Created attachment 696 [details]
proposed patch
With excellent comments and suggestions from Darren Tucker on my initial
version, this is a much improved patch (thankfully, the original need not see
the light of day).
It's against the 20040730 snapshot, and I've tested it on AIX 5.1.
I just tried that on 5.2 but it still allows the login after locking out the account via telnet. I suspect there's some kind of caching going on, but neither setpwent/endpwent or setuserdb/enduserdb make a difference. Many years ago, I had a patch which used loginrestrictions and the AIX authenticate function which was incorporated into the source. Since then it seems to be only available with compile flag -DCUSTOM_FAILED_LOGIN. It does honor login restrictions. Basically acts as telnet (ie resetting the failed login if under the limit of failed logins). |