summaryrefslogtreecommitdiffstats
path: root/server/config
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-01-25 13:45:16 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-02-02 14:41:41 -0500
commit7ea48433b3bab77813b11c60e1ea82cb9793dc33 (patch)
treef7012746fd8f727cd80bd2361cb239893004f2b5 /server/config
parent245818557767e511d46b566bd1352f4d8fcb3426 (diff)
downloadsssd-7ea48433b3bab77813b11c60e1ea82cb9793dc33.tar.gz
sssd-7ea48433b3bab77813b11c60e1ea82cb9793dc33.tar.xz
sssd-7ea48433b3bab77813b11c60e1ea82cb9793dc33.zip
Add offline failed login counter
Diffstat (limited to 'server/config')
-rw-r--r--server/config/SSSDConfig.py2
-rw-r--r--server/config/etc/sssd.api.conf2
2 files changed, 4 insertions, 0 deletions
diff --git a/server/config/SSSDConfig.py b/server/config/SSSDConfig.py
index b08e9f4f2..b751e4db8 100644
--- a/server/config/SSSDConfig.py
+++ b/server/config/SSSDConfig.py
@@ -61,6 +61,8 @@ option_strings = {
# [pam]
'offline_credentials_expiration' : _('How long to allow cached logins between online logins (days)'),
+ 'offline_failed_login_attempts' : _('How many failed logins attempts are allowed when offline'),
+ 'offline_failed_login_delay' : _('How long (minutes) to deny login after offline_failed_login_attempts has been reached'),
# [provider]
'id_provider' : _('Identity provider'),
diff --git a/server/config/etc/sssd.api.conf b/server/config/etc/sssd.api.conf
index bdb6aab24..5fc8e781f 100644
--- a/server/config/etc/sssd.api.conf
+++ b/server/config/etc/sssd.api.conf
@@ -31,6 +31,8 @@ pwfield = str, None, *
[pam]
# Authentication service
offline_credentials_expiration = int, None
+offline_failed_login_attempts = int, None
+offline_failed_login_delay = int, None
[provider]
#Available provider types