diff --git a/authentik/sources/ldap/sync/base.py b/authentik/sources/ldap/sync/base.py index 6b3a00563..9c196595e 100644 --- a/authentik/sources/ldap/sync/base.py +++ b/authentik/sources/ldap/sync/base.py @@ -82,6 +82,8 @@ class BaseLDAPSynchronizer: value = mapping.evaluate(user=None, request=None, ldap=kwargs, dn=object_dn) if value is None: continue + if isinstance(value, (bytes)): + continue object_field = mapping.object_field if object_field.startswith("attributes."): # Because returning a list might desired, we can't