Skip to content

Commit

Permalink
Merge pull request #511 from Pennyw0rth/fix_ldap_trust
Browse files Browse the repository at this point in the history
fix trust relation for ldap
  • Loading branch information
mpgn authored Dec 19, 2024
2 parents ecd3fcd + 73ce6d7 commit 4de3126
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 @@ -249,7 +249,7 @@ def enum_host_info(self):
ntlm_info = parse_challenge(ntlm_challenge)
self.server_os = ntlm_info["os_version"]

if not self.kdcHost and self.domain:
if not self.kdcHost and self.domain and self.domain == self.remoteName:
result = self.resolver(self.domain)
self.kdcHost = result["host"] if result else None
self.logger.info(f"Resolved domain: {self.domain} with dns, kdcHost: {self.kdcHost}")
Expand Down

0 comments on commit 4de3126

Please sign in to comment.