sdl

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AceMaskToText added in v1.6.0

func AceMaskToText(mask int, guid string) ([]string, int)

Reference: http://www.selfadsi.org/deep-inside/ad-security-descriptors.htm At the moment this is an experimental & testing accuracy of the parser is hard. There are probably some bugs, bug they can be solved in the future :-)

func LookupSID

func LookupSID(conn *ldap.Conn, baseDN string, SID string) (resolvedSID string, err error)

Types

type ACCESS_ALLOWED_ACE

type ACCESS_ALLOWED_ACE struct {
	SID string
	// contains filtered or unexported fields
}

type ACCESS_ALLOWED_CALLBACK_ACE

type ACCESS_ALLOWED_CALLBACK_ACE struct {
	SID string
	// contains filtered or unexported fields
}

The ACE types below seem currently useless, if I figure out any use for them in the future I'll consider implementing some additional logic

type ACCESS_ALLOWED_CALLBACK_OBJECT_ACE

type ACCESS_ALLOWED_CALLBACK_OBJECT_ACE struct {
	SID string
	// contains filtered or unexported fields
}

type ACCESS_ALLOWED_OBJECT_ACE

type ACCESS_ALLOWED_OBJECT_ACE struct {
	SID string
	// contains filtered or unexported fields
}

type ACCESS_DENIED_ACE

type ACCESS_DENIED_ACE struct {
	SID string
	// contains filtered or unexported fields
}

type ACCESS_DENIED_CALLBACK_ACE

type ACCESS_DENIED_CALLBACK_ACE struct {
	SID string
	// contains filtered or unexported fields
}

type ACCESS_DENIED_CALLBACK_OBJECT_ACE

type ACCESS_DENIED_CALLBACK_OBJECT_ACE struct {
	SID string
	// contains filtered or unexported fields
}

type ACCESS_DENIED_OBJECT_ACE

type ACCESS_DENIED_OBJECT_ACE struct {
	SID string
	// contains filtered or unexported fields
}

type ACEFLAGS

type ACEFLAGS struct {
	// contains filtered or unexported fields
}

type ACEHEADER

type ACEHEADER struct {
	ACEType      string
	ACEFlags     string
	AceSizeBytes string
}

type ACEMASK

type ACEMASK struct {
	// contains filtered or unexported fields
}

type ACESList

type ACESList struct {
	SamAccountName string
	Type           string
	RawMask        int
	Mask           []string
	Scope          string
	Inheritance    bool
	Severity       int
}

func ParseSD

func ParseSD(conn *ldap.Conn, baseDN string, SD string) (acesList []ACESList, owner string)

type ACLHEADER

type ACLHEADER struct {
	ACLRevision  string
	Sbz1         string
	ACLSizeBytes string
	ACECount     string
	Sbz2         string
}
type HEADER struct {
	Revision    string
	Sbz1        string
	Control     string
	OffsetOwner string
	OffsetGroup string
	OffsetSacl  string
	OffsetDacl  string
}

type SYSTEM_AUDIT_ACE

type SYSTEM_AUDIT_ACE struct {
	SID string
	// contains filtered or unexported fields
}

type SYSTEM_AUDIT_CALLBACK_ACE

type SYSTEM_AUDIT_CALLBACK_ACE struct {
	SID string
	// contains filtered or unexported fields
}

type SYSTEM_AUDIT_CALLBACK_OBJECT_ACE

type SYSTEM_AUDIT_CALLBACK_OBJECT_ACE struct {
	SID string
	// contains filtered or unexported fields
}

type SYSTEM_AUDIT_OBJECT_ACE

type SYSTEM_AUDIT_OBJECT_ACE struct {
	SID string
	// contains filtered or unexported fields
}

type SYSTEM_MANDATORY_LABEL_ACE

type SYSTEM_MANDATORY_LABEL_ACE struct {
	SID string
	// contains filtered or unexported fields
}

type SYSTEM_RESOURCE_ATTRIBUTE_ACE

type SYSTEM_RESOURCE_ATTRIBUTE_ACE struct {
	SID string
	// contains filtered or unexported fields
}

type SYSTEM_SCOPED_POLICY_ID_ACE

type SYSTEM_SCOPED_POLICY_ID_ACE struct {
	SID string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL