Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TARGET_DN object query #500

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Conversation

MaxToffy
Copy link
Contributor

@MaxToffy MaxToffy commented Dec 4, 2024

Summary

This PR fix the same problem as in dacledit.py : fortra/impacket#1855

@NeffIsBack
Copy link
Contributor

Thanks for the bug fix!
If i understood the example on impacket correct, searching for RootDNSServers would result in not being found? Or what query exactly would break before?

@NeffIsBack NeffIsBack added the bug-fix This Pull Request fixes a bug label Dec 4, 2024
@MaxToffy
Copy link
Contributor Author

MaxToffy commented Dec 4, 2024

Yes, searching for the DN DC=RootDNSServers,CN=MicrosoftDNS,DC=DomainDnsZones,DC=DOMAIN,DC=TLD would fail finding the object because the search base is by default on DC=DOMAIN,DC=TLD.

With this fix, instead of searching with the base DC=DOMAIN,DC=TLD, we directly search from the target DN (DC=RootDNSServers,CN=MicrosoftDNS,DC=DomainDnsZones,DC=DOMAIN,DC=TLD) provided by the users witch fix the issue on finding the object.

Copy link
Contributor

@NeffIsBack NeffIsBack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM:
image

@NeffIsBack NeffIsBack mentioned this pull request Dec 10, 2024
2 tasks
@NeffIsBack NeffIsBack merged commit dcb3bbd into Pennyw0rth:main Dec 11, 2024
3 checks passed
@MaxToffy MaxToffy deleted the fix-daclread branch December 11, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix This Pull Request fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants