Skip to content

Add user filter on findDelegation (rebased) #1999

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

Merged

Conversation

alexisbalbachan
Copy link
Collaborator

@alexisbalbachan alexisbalbachan commented Jul 10, 2025

  • This PR is based on Added user filter on findDelegation #1184 which needed a rebase.
  • Also added a missing filter from master (only non domain controllers allowed) in order to keep the same behavior as before.
  • Removed changes to whitespaces, and did a small refactor compared to the previous changeset.

Removed extra validations no longer needed after having a dynamic ldap filter
@alexisbalbachan
Copy link
Collaborator Author

We analyzed the effects removing the "(!(UserAccountControl:1.2.840.113556.1.4.803:=8192))" filter (present in the original PR). This is indeed the behavior that we want (DCs should always be returned, because despite their delegations being unconstrained by default they CAN be changed).

Some further checks on returned records were no longer needed so they were removed (related to the -disabled flag, which now changes the resulting LDAP query, so the query itself filters what we need)

@alexisbalbachan alexisbalbachan self-assigned this Jul 17, 2025
@alexisbalbachan alexisbalbachan merged commit 1f00d55 into fortra:master Jul 17, 2025
8 checks passed
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