From 6692ed8345ffce66e2495a1afc859fcac51a88ce Mon Sep 17 00:00:00 2001 From: ljf Date: Mon, 8 Oct 2018 19:45:12 +0200 Subject: [PATCH] [fix] Str python3 error --- moulinette/authenticators/ldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moulinette/authenticators/ldap.py b/moulinette/authenticators/ldap.py index 57ba27b7..2812e1c2 100644 --- a/moulinette/authenticators/ldap.py +++ b/moulinette/authenticators/ldap.py @@ -104,7 +104,7 @@ class Authenticator(BaseAuthenticator): return # we aren't using sha-512 but something else that is weaker, proceed to upgrade - if not hashed_password["userPassword"][0].startswith("{CRYPT}$6$"): + if not hashed_password["userPassword"][0].startswith(b"{CRYPT}$6$"): self.update("cn=admin", { "userPassword": _hash_user_password(password), })