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