Summary | block login for a given time span after x failed logins |
Queue | Kolab |
Type | Enhancement |
State | Resolved |
Priority | 2. Medium |
Owners | |
Requester | tokoe (at) kde (dot) org |
Created | 02/14/2006 (7127 days ago) |
Due | |
Updated | 02/22/2006 (7119 days ago) |
Assigned | |
Resolved | 02/22/2006 (7119 days ago) |
Milestone | |
Patch | No |
State ⇒ Resolved
New Attachment: feature_block_login[3].patch
sorry for the noise but i noticed a bug in my previous patch.
No it checks for an empty history as well.
New Attachment: feature_block_login[2].patch
here is the third revision ;)
- The patch to conf.xml is missing
$history_list each time inside the loop
during the configured time span in one go
logins), which will fill up the history table with every failed login
the history will always be around 5 entries, not more.
Ciao,
Tobias
- The patch to conf.xml is missing
- You assign $history_data, but never use it
- You loop through $history_log->getData() but overwrite $history_list
each time inside the loop
- You could use getByTimestamp() to get the number of failed logins
during the configured time span in one go
- You never delete the history entries (when you have successful
logins), which will fill up the history table with every failed login
New Attachment: feature_block_login[1].patch
thanks for the comments, attached is the new version of this patch.
Ciao,
Tobias
State ⇒ Feedback
new AUTH_REASON, but use AUTH_REASON_MESSAGE instead.
Also, there are a few coding standards missing: if-clauses alway go
with curly braces; parentheses don't have padding spaces inside.
And maye you could use the History class instead, that might reduce the code.
Priority ⇒ 2. Medium
Type ⇒ Enhancement
Summary ⇒ block login for a given time span after x failed logins
Queue ⇒ Kolab
New Attachment: feature_block_login.patch
State ⇒ New
the attached patch adds support for blocking the login after a given
number of failed logins. That's very usefull to make brute force
attacks more difficult when your horde is available to the internet.
Ciao,
Tobias