[fix] Str python3 error

This commit is contained in:
ljf 2018-10-08 19:45:12 +02:00
parent d930fa05d5
commit 6692ed8345

View file

@ -104,7 +104,7 @@ class Authenticator(BaseAuthenticator):
return return
# we aren't using sha-512 but something else that is weaker, proceed to upgrade # 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", { self.update("cn=admin", {
"userPassword": _hash_user_password(password), "userPassword": _hash_user_password(password),
}) })