MCPcopy Index your code
hub / github.com/XiaoliChan/LDAPShell / create_allow_ace

Method create_allow_ace

utils/ldap_shell.py:80–90  ·  view source on GitHub ↗
(self, sid)

Source from the content-addressed store, hash-verified

78 return sd
79
80 def create_allow_ace(self, sid):
81 nace = ldaptypes.ACE()
82 nace['AceType'] = ldaptypes.ACCESS_ALLOWED_ACE.ACE_TYPE
83 nace['AceFlags'] = 0x00
84 acedata = ldaptypes.ACCESS_ALLOWED_ACE()
85 acedata['Mask'] = ldaptypes.ACCESS_MASK()
86 acedata['Mask']['Mask'] = 983551 # Full control
87 acedata['Sid'] = ldaptypes.LDAP_SID()
88 acedata['Sid'].fromCanonical(sid)
89 nace['Ace'] = acedata
90 return nace
91
92 def do_write_gpo_dacl(self, line):
93 args = shlex.split(line)

Callers 3

do_write_gpo_daclMethod · 0.95
do_grant_controlMethod · 0.95
do_set_rbcdMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected