From 0ef9d18aceab08fc77a48a1ef962642e0e116023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Tue, 16 Nov 2021 11:18:00 +0100 Subject: [PATCH] [auth_ldap][fix] fix loade correct picture --- flaschengeist/plugins/auth_ldap/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaschengeist/plugins/auth_ldap/__init__.py b/flaschengeist/plugins/auth_ldap/__init__.py index f017815..ab001a2 100644 --- a/flaschengeist/plugins/auth_ldap/__init__.py +++ b/flaschengeist/plugins/auth_ldap/__init__.py @@ -147,7 +147,7 @@ class AuthLDAP(AuthPlugin): if "jpegPhoto" in r and len(r["jpegPhoto"]) > 0: avatar = _Avatar() avatar.mimetype = "image/jpeg" - avatar.binary.extend(r["jpegPhoto"][0]) + avatar.binary = bytearray(r['jpegPhoto'][0]) return avatar else: raise NotFound