Skip to content

Commit

Permalink
fix(ldap): off by one :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marshall-Hallenbeck committed Mar 22, 2024
1 parent 49e909c commit e5bba81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nxc/protocols/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ def users(self):
-------
None
"""
if len(self.args.users) > 1:
if len(self.args.users) > 0:
self.logger.display(f"Trying to dumping users: {', '.join(self.args.users)}")
search_filter = f"(|{''.join(f'(sAMAccountName={user})' for user in self.args.users)})"
else:
Expand Down

0 comments on commit e5bba81

Please sign in to comment.