MCPcopy Create free account
hub / github.com/Synzack/ldapper / getOwner

Function getOwner

SecurityDescriptor/SecurityDescriptorFuncs.go:58–64  ·  view source on GitHub ↗
(header *HEADER, sd string)

Source from the content-addressed store, hash-verified

56}
57
58func getOwner(header *HEADER, sd string) (ownerSID string) {
59 offset := hexToOffset(header.OffsetOwner)
60 ownerHexSID := sd[offset : offset+56]
61 ownerSID = convertSID(ownerHexSID)
62
63 return
64}
65
66func GetGroup(header *HEADER, sd string) (groupSID string) {
67 offset := hexToOffset(header.OffsetGroup)

Callers

nothing calls this directly

Calls 2

hexToOffsetFunction · 0.85
convertSIDFunction · 0.85

Tested by

no test coverage detected