diff options
author | Michal Židek <mzidek@redhat.com> | 2015-08-31 18:47:57 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-09-03 09:56:54 +0200 |
commit | 60713f738cedb6e4239604baf6619a0ca986fa49 (patch) | |
tree | a7848830bf6fdab2e2958bea63d915f53dffdcc0 /src/tests/intg/ds_openldap.py | |
parent | 95b2c51771b8b4568e0996061e3819dd36188e22 (diff) | |
download | sssd-60713f738cedb6e4239604baf6619a0ca986fa49.tar.gz sssd-60713f738cedb6e4239604baf6619a0ca986fa49.tar.xz sssd-60713f738cedb6e4239604baf6619a0ca986fa49.zip |
intg: Fix some PEP 8 violations
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'src/tests/intg/ds_openldap.py')
-rw-r--r-- | src/tests/intg/ds_openldap.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/intg/ds_openldap.py b/src/tests/intg/ds_openldap.py index 42a2c9003..2ece0cf18 100644 --- a/src/tests/intg/ds_openldap.py +++ b/src/tests/intg/ds_openldap.py @@ -30,6 +30,7 @@ import sys from util import * from ds import DS + def hash_password(password): """Generate userPassword value for a password.""" salt = os.urandom(4) @@ -37,6 +38,7 @@ def hash_password(password): hash.update(salt) return "{SSHA}" + base64.standard_b64encode(hash.digest() + salt) + class DSOpenLDAP(DS): """OpenLDAP directory server instance.""" |