You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--find-delegation does not report Constrained and Unconstrained delegation types for the same account #1512
Describe the bug
In the case whre a user has both UF_TRUSTED_FOR_DELEGATION and msDS-AllowedToDelegateTo, the result using "--find-delegation" only shows up ad Constrained delegation since "delegation" gets overwritten
# Filter out DCs, unconstrained delegation to DCs is not a useful information
if userAccountControl & UF_TRUSTED_FOR_DELEGATION and not userAccountControl & UF_SERVER_TRUST_ACCOUNT:
delegation = "Unconstrained"
rightsTo.append("N/A")
elif userAccountControl & UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION:
delegation = "Constrained w/ Protocol Transition"
protocolTransition = 1
if item.get("msDS-AllowedToDelegateTo") is not None:
if protocolTransition == 0:
delegation = "Constrained"
rightsTo = item.get("msDS-AllowedToDelegateTo")
ifitem.get("msDS-AllowedToDelegateTo") isnotNone:
# Already flagged Unconstrained, record it before delegation/rightsTo get overwrittenifdelegation=="Unconstrained":
answers.append([sAMAccountName, objectType, delegation, rightsTo])
This worked for me btw
Let me know if anyone has any problems if not I'll put it in a PR
if item.get("msDS-AllowedToDelegateTo") is not None:
# Already flagged Unconstrained, record it before delegation/rightsTo get overwritten
if delegation == "Unconstrained":
answers.append([sAMAccountName, objectType, delegation, rightsTo])
This worked for me btw
Let me know if anyone has any problems if not I'll put it in a PR
The user should be reported with both Constrained and Unconstrained delegation
I am trying to review #1513, but I don't see how you would be able to configure both unconstrained and constrained delegation at once? That does not make sense to me. Is this even configurable? If so how?
Activity
SoftAndoWetto commentedon Nov 8, 2026
This worked for me btw
termanix commentedon Nov 8, 2026
Ofc, Every PR's welcome. We can discus it on PR.
NeffIsBack commentedon Nov 15, 2026
I am trying to review #1513, but I don't see how you would be able to configure both unconstrained and constrained delegation at once? That does not make sense to me. Is this even configurable? If so how?