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

Allow listing security descriptor for any distinguished name #15

Conversation

rtpt-erikgeiser
Copy link
Contributor

In the current implementation, it is not possible to list security descriptors for certain objects, e.g. Active Directory DNS records. The reason for this is that objects like DNS records do not belong to a different root DN rather than the default root DN that is used in the query.

I fixed this by keeping the query as-is for SAM account names, and changing it for DNs such that the entered DN is the search root and the scope is ldap.ScopeBaseObject so only the exact object that corresponds to the DN is returned.

@Macmod
Copy link
Owner

Macmod commented Feb 1, 2025

Hey mate, thanks for the contribution!

Indeed that's a problem I knew about, but I didn't know how to solve it properly without breaking other features.

Let me take a look at what you did and test it a little bit. =)

@Macmod
Copy link
Owner

Macmod commented Feb 2, 2025

It seems to be working well in my lab, so I'm going to merge it.

Good job and thanks again! =)

@Macmod Macmod merged commit bd77fdd into Macmod:main Feb 2, 2025
@Macmod Macmod self-assigned this Feb 2, 2025
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.

2 participants