diff --git a/shared/autocomplete.py b/shared/autocomplete.py index 971a8dfb..75c6d814 100644 --- a/shared/autocomplete.py +++ b/shared/autocomplete.py @@ -182,6 +182,7 @@ class LDAPSearch(SearchUnit): mail=attrs["mail"][0].decode("utf-8"), ) for (_, attrs) in res + if "uid" in attrs # Hack to discard weird accounts like root ] except ldap.LDAPError as err: django_logger.error("An LDAP error occurred", exc_info=err)