Merge "Set max on max_password_length to passlib max"

This commit is contained in:
Jenkins 2015-08-28 13:05:26 +00:00 committed by Gerrit Code Review
commit e808115582
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@
from oslo_config import cfg
import oslo_messaging
import passlib.utils
_DEFAULT_AUTH_METHODS = ['external', 'password', 'token', 'oauth1']
@ -159,6 +160,7 @@ FILE_OPTIONS = {
'no effect unless global and identity caching are '
'enabled.'),
cfg.IntOpt('max_password_length', default=4096,
max=passlib.utils.MAX_PASSWORD_SIZE,
help='Maximum supported length for user passwords; '
'decrease to improve performance.'),
cfg.IntOpt('list_limit',