diff options
author | Ronald De Rose <ronald.de.rose@intel.com> | 2016-07-09 23:14:16 +0000 |
---|---|---|
committer | Ronald De Rose <ronald.de.rose@intel.com> | 2016-08-03 14:34:41 +0000 |
commit | 0e2cc0562a5a97c836356df0a016ca2b28d97c36 (patch) | |
tree | 7dd62f9757116542b9bbfd46f65a45d2bcbc43fe /keystone/conf/security_compliance.py | |
parent | b79e08b9bce25427e67ad7f74948f93777b9df03 (diff) | |
download | keystone-0e2cc0562a5a97c836356df0a016ca2b28d97c36.tar.gz |
PCI-DSS Lockout requirements
This patch satisfies the following PCI-DSS lockout requirements:
* PCI-DSS 8.1.6: Limit repeated access attempts by locking out the user
ID after not more than 6 attempts.
Co-Authored-By: Alexander Makarov amakarov@mirantis.com
Partially-implements: blueprint pci-dss
Change-Id: I8e1bdd0d6febcd5f51a4de3249e2eb3ae16dcee5
Diffstat (limited to 'keystone/conf/security_compliance.py')
-rw-r--r-- | keystone/conf/security_compliance.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/keystone/conf/security_compliance.py b/keystone/conf/security_compliance.py index 4e74e8628..2999fe4db 100644 --- a/keystone/conf/security_compliance.py +++ b/keystone/conf/security_compliance.py @@ -30,14 +30,16 @@ may not match the value of the user's `enabled` column in the user table. lockout_failure_attempts = cfg.IntOpt( 'lockout_failure_attempts', - default=0, - min=0, + default=None, + min=1, help=utils.fmt(""" The maximum number of times that a user can fail to authenticate before the user account is locked for the number of seconds specified by -`[security_compliance] lockout_duration`. Setting this value to zero (the -default) disables this feature. This feature depends on the `sql` backend for -the `[identity] driver`. +`[security_compliance] lockout_duration`. This feature is disabled by +default. If this feature is enabled and `[security_compliance] +lockout_duration` is not set, then users may be locked out indefinitely +until the user is explicitly enabled via the API. This feature depends on +the `sql` backend for the `[identity] driver`. """)) lockout_duration = cfg.IntOpt( |