Skip to content

Commit

Permalink
feat: add GenericWrite and WriteGPLink for Domain
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBK authored May 13, 2024
1 parent 95ca1de commit eb3af9a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CommonLib/Processors/ACLProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ or Label.Group
or Label.Computer
or Label.GPO
or Label.OU
or Label.Domain
or Label.CertTemplate
or Label.RootCA
or Label.EnterpriseCA
Expand Down Expand Up @@ -419,7 +420,7 @@ or Label.NTAuthStore
IsInherited = inherited,
RightName = EdgeNames.WriteAccountRestrictions
};
else if (objectType == Label.OU && aceType == ACEGuids.WriteGPLink)
else if (objectType is Label.OU or Label.Domain && aceType == ACEGuids.WriteGPLink)
yield return new ACE
{
PrincipalType = resolvedPrincipal.ObjectType,
Expand Down Expand Up @@ -601,4 +602,4 @@ public IEnumerable<ACE> ProcessGMSAReaders(byte[] groupMSAMembership, string obj
}
}
}
}
}

0 comments on commit eb3af9a

Please sign in to comment.