We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3d407b4 + 9e8a8b7 commit bdd3722Copy full SHA for bdd3722
1 file changed
nxc/protocols/ldap.py
@@ -820,13 +820,13 @@ def groups(self):
820
self.logger.debug(f"Skipping item, cannot process due to error {e}")
821
822
def computers(self):
823
- resp = self.search(f"(sAMAccountType={SAM_MACHINE_ACCOUNT})", ["name"], 0)
+ resp = self.search(f"(sAMAccountType={SAM_MACHINE_ACCOUNT})", ["sAMAccountName"])
824
resp_parsed = parse_result_attributes(resp)
825
826
if resp:
827
self.logger.display(f"Total records returned: {len(resp_parsed)}")
828
for item in resp_parsed:
829
- self.logger.highlight(item["name"] + "$")
+ self.logger.highlight(item["sAMAccountName"])
830
831
def dc_list(self):
832
# bypass host resolver configuration via configure=False (default pulls from /etc/resolv.conf or registry on Windows)
0 commit comments