Skip to content

Commit

Permalink
add LDAP_SERVER_SD_FLAGS enum (#1841)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePirateWhoSmellsOfSunflowers authored Oct 24, 2024
1 parent 65b774d commit db71504
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions impacket/ldap/ldaptypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#
from struct import unpack, pack
from impacket.structure import Structure
from enum import Enum

# Global constant if the library should recalculate ACE sizes in objects that are decoded/re-encoded.
# This defaults to True, but this causes the ACLs to not match on a binary level
Expand Down Expand Up @@ -493,3 +494,11 @@ def getData(self):
b'user': 'bf967aba-0de6-11d0-a285-00aa003049e2',
b'groupPolicyContainer': 'f30e3bc2-9ff0-11d1-b603-0000f80367c1'
}

# https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/3888c2b7-35b9-45b7-afeb-b772aa932dd0
class LDAP_SERVER_SD_FLAGS(Enum):
OWNER_SECURITY_INFORMATION = 0x1
GROUP_SECURITY_INFORMATION = 0x2
DACL_SECURITY_INFORMATION = 0x4
SACL_SECURITY_INFORMATION = 0x8

0 comments on commit db71504

Please sign in to comment.