Update ldap.py

Try to fix Ruff error

Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
This commit is contained in:
termanix
2023-11-28 19:00:44 +03:00
committed by GitHub
parent 5ca86fc1d7
commit d29bb7cf18
+1 -1
View File
@@ -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: