Skip to content

Commit

Permalink
Renaming ManageGPLink permission to WriteGPLink
Browse files Browse the repository at this point in the history
  • Loading branch information
q-roland committed May 8, 2024
1 parent a2d5e46 commit 2427506
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/CommonLib/EdgeNames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static class EdgeNames
public const string AddKeyCredentialLink = "AddKeyCredentialLink";
public const string SQLAdmin = "SQLAdmin";
public const string WriteAccountRestrictions = "WriteAccountRestrictions";
public const string ManageGPLink = "ManageGPLink";
public const string WriteGPLink = "WriteGPLink";

//CertAbuse edges
public const string WritePKIEnrollmentFlag = "WritePKIEnrollmentFlag";
Expand Down
2 changes: 1 addition & 1 deletion src/CommonLib/Processors/ACEGuids.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class ACEGuids
public const string WriteSPN = "f3a64788-5306-11d1-a9c5-0000f80367c1";
public const string AddKeyPrincipal = "5b47d60f-6090-40b2-9f37-2a4de88f3063";
public const string UserAccountRestrictions = "4c164200-20c0-11d0-a768-00aa006e0529";
public const string ManageGPLink = "f30e3bbf-9ff0-11d1-b603-0000f80367c1";
public const string WriteGPLink = "f30e3bbf-9ff0-11d1-b603-0000f80367c1";


//Cert abuse ACEs
Expand Down
4 changes: 2 additions & 2 deletions src/CommonLib/Processors/ACLProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,13 @@ or Label.NTAuthStore
IsInherited = inherited,
RightName = EdgeNames.WriteAccountRestrictions
};
else if (objectType == Label.OU && aceType == ACEGuids.ManageGPLink)
else if (objectType == Label.OU && aceType == ACEGuids.WriteGPLink)
yield return new ACE
{
PrincipalType = resolvedPrincipal.ObjectType,
PrincipalSID = resolvedPrincipal.ObjectIdentifier,
IsInherited = inherited,
RightName = EdgeNames.ManageGPLink
RightName = EdgeNames.WriteGPLink
};
else if (objectType == Label.Group && aceType == ACEGuids.WriteMember)
yield return new ACE
Expand Down

0 comments on commit 2427506

Please sign in to comment.