Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LiteralSIDRegex = regexp.MustCompile(`SID\(.*?\)`)
View Source
var StringRegex = regexp.MustCompile(`("")|(".*?[^\\]")`)
Functions ¶
func OSTranslateSID ¶
Note that all usages of TranslateSID gracefully handle the error, rather than throwing the error.
Types ¶
type ACLEntry ¶
type ACLEntry struct {
Sections []string
}
field 5 and field 6 will contain SIDs. field 5 is a lone SID, but field 6 will contain SIDs under SID(.*)
type ACLList ¶
func (*ACLList) PortableString ¶
PortableString returns a SDDL that's been ported from non-descript, well known SID strings (such as DU, DA, etc.) to domain-specific strings. This allows us to not mix up the admins from one domain to another. Azure Files requires that we do this.
type SDDLString ¶
Owner and group SIDs need replacement
func ParseSDDL ¶
func ParseSDDL(input string) (sddl SDDLString, err error)
func (SDDLString) Compare ¶ added in v10.14.0
func (s SDDLString) Compare(other SDDLString) bool
func (*SDDLString) PortableString ¶
func (s *SDDLString) PortableString() string
func (*SDDLString) String ¶
func (s *SDDLString) String() string
Click to show internal directories.
Click to hide internal directories.