diff --git a/nxc/modules/group_members.py b/nxc/modules/group_members.py index 104080ff6..4adc8a351 100644 --- a/nxc/modules/group_members.py +++ b/nxc/modules/group_members.py @@ -71,11 +71,7 @@ def on_login(self, context, connection): def do_search(self, context, connection, searchFilter, attributeName): try: context.log.debug(f"Search Filter={searchFilter}") - resp = connection.ldapConnection.search( - searchFilter=searchFilter, - attributes=[attributeName], - sizeLimit=0 - ) + resp = connection.ldapConnection.search(searchFilter=searchFilter, attributes=[attributeName], sizeLimit=0) context.log.debug(f"Total number of records returned {len(resp)}") for item in resp: if isinstance(item, ldapasn1_impacket.SearchResultEntry) is not True: