MCPcopy Create free account
hub / github.com/secdev/scapy / addace

Method addace

scapy/modules/ldaphero.py:1073–1090  ·  view source on GitHub ↗
(id, table, ace, pos="end")

Source from the content-addressed store, hash-verified

1071 ace.AceFlags = aceflags
1072
1073 def addace(id, table, ace, pos="end"):
1074 data = ace.extractData(accessMask=LDAP_DS_ACCESS_RIGHTS)
1075 table.insert(
1076 "",
1077 pos,
1078 id,
1079 values=(
1080 ace.sprintf("%AceType%"),
1081 self._rslvsid(data["sid-string"]),
1082 str(data["mask"])
1083 + (
1084 " (%s)" % self._rslvtype(data["object-guid"])
1085 if data["object-guid"]
1086 else ""
1087 ),
1088 ace.sprintf("%AceFlags%"),
1089 ),
1090 )
1091
1092 def acltable(name):
1093 aclfrm = ttk.LabelFrame(dlg, text=name, borderwidth=0)

Callers

nothing calls this directly

Calls 4

_rslvsidMethod · 0.95
_rslvtypeMethod · 0.95
extractDataMethod · 0.80
sprintfMethod · 0.45

Tested by

no test coverage detected