summaryrefslogtreecommitdiffstats
path: root/src/tests/intg/ds_openldap.py
diff options
context:
space:
mode:
authorMichal Židek <mzidek@redhat.com>2015-08-31 18:47:57 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-09-03 09:56:54 +0200
commit60713f738cedb6e4239604baf6619a0ca986fa49 (patch)
treea7848830bf6fdab2e2958bea63d915f53dffdcc0 /src/tests/intg/ds_openldap.py
parent95b2c51771b8b4568e0996061e3819dd36188e22 (diff)
downloadsssd-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.py2
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."""