summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlvaro Lopez Garcia <aloga@ifca.unican.es>2012-01-31 18:14:17 +0100
committerAlvaro Lopez Garcia <aloga@ifca.unican.es>2012-02-06 13:29:03 +0100
commit9452cf04bc8b0a4dc66dc640615d5ace1ca715f2 (patch)
tree547b1e7753debc3f3f7ee3e3db5c2367a6c860ed
parentbfe9abeaa8a7ec8403b8fae1a7a302aa0e060bf4 (diff)
Fixes bug 924391
Change-Id: Iccb232a56df6072580cbcb0bc07ef7c0f81ca8fe
-rwxr-xr-xkeystone/backends/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/keystone/backends/__init__.py b/keystone/backends/__init__.py
index 8454d7c2..84d73d04 100755
--- a/keystone/backends/__init__.py
+++ b/keystone/backends/__init__.py
@@ -27,7 +27,7 @@ CONF = config.CONF
DEFAULT_BACKENDS = "keystone.backends.sqlalchemy"
#Configs applicable to all backends.
-SHOULD_HASH_PASSWORD = CONF.hash_password
+SHOULD_HASH_PASSWORD = True
class GroupConf(CONF.__class__):
@@ -46,6 +46,9 @@ class GroupConf(CONF.__class__):
def configure_backends():
"""Load backends given in the 'backends' option."""
+ global SHOULD_HASH_PASSWORD # pylint: disable=W0603
+ SHOULD_HASH_PASSWORD = CONF.hash_password
+
backend_names = CONF.backends or DEFAULT_BACKENDS
for module_name in backend_names.split(","):
backend_module = utils.import_module(module_name)