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 dacledit.py object query on specified DN #1855

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MaxToffy
Copy link

Summary

This simple patch changes the LDAP query to use _lookedup_principal as the search base instead of self.domain_dumper.root when using a Distinguished Name.

Before:
The query started at the domain root (self.domain_dumper.root = DC=DOMAIN,DC=TLD) and used a filter to locate the DN. This failed finding objects such as DNS zones like DC=RootDNSServers,CN=MicrosoftDNS,DC=DomainDnsZones,DC=DOMAIN,DC=TLD.

After:
The query directly targets _lookedup_principal as the base, ensuring the object is correctly located.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant