We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3ce231 commit af6b69dCopy full SHA for af6b69d
1 file changed
nxc/protocols/ldap.py
@@ -655,7 +655,7 @@ def check_if_admin(self):
655
resp = self.search(search_filter, attributes, sizeLimit=0, baseDN=self.baseDN)
656
resp_parsed = parse_result_attributes(resp)
657
answers = []
658
- if resp and (self.password != "" or self.lmhash != "" or self.nthash != "" or self.aesKey != "") and self.username != "":
+ if resp and ((self.password != "" or self.lmhash != "" or self.nthash != "" or self.aesKey != "") or self.ldap_connection) and self.username != "":
659
for item in resp_parsed:
660
self.sid_domain = "-".join(item["objectSid"].split("-")[:-1])
661
0 commit comments