mirror of
https://github.com/Pennyw0rth/NetExec
synced 2026-06-06 16:34:30 +00:00
Update ldap.py
Try to fix Ruff error Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
This commit is contained in:
@@ -834,7 +834,7 @@ class ldap(connection):
|
||||
def active_users(self):
|
||||
# Building the search filter
|
||||
search_filter = "(sAMAccountType=805306368)" if self.username != "" else "(objectclass=*)"
|
||||
attributes = ["sAMAccountName","userAccountControl"]
|
||||
attributes = ["sAMAccountName", "userAccountControl"]
|
||||
|
||||
resp = self.search(search_filter, attributes, sizeLimit=0)
|
||||
if resp:
|
||||
|
||||
Reference in New Issue
Block a user