ad

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseNameAndValue

func ParseNameAndValue(oid asn1.ObjectIdentifier, b []byte, opts ...any) (string, any, error)

Types

type Attr

type Attr struct {
	// CN is the common name of the attribute.
	CN string `json:"cn"`
	// LDAPName is the LDAP display name of the attribute.
	LDAPName string `json:"ldap_name"`
	// AttributeID is the ASN.1 object identifier of the attribute.
	AttributeID asn1.ObjectIdentifier `json:"attribute_id"`
	// The SystemID is the GUID of the attribute.
	SystemID *uuid.UUID `json:"system_id"`
	// Syntax is the syntax of the attribute.
	Syntax Syntax `json:"syntax"`
	// Description is the description of the attribute.
	Description string `json:"description"`
}

Attr is an Active Directory attribute.

func LookupByOID

func LookupByOID(oid asn1.ObjectIdentifier) (Attr, bool)

type Boolean

type Boolean struct{}

func (Boolean) Convert

func (Boolean) Convert(b []byte, _ ...any) (any, error)

func (Boolean) Size

func (Boolean) Size() int

type Converter

type Converter interface {
	Size() int
	Convert([]byte, ...any) (any, error)
}

type DSDN

type DSDN struct{}

func (DSDN) Convert

func (DSDN) Convert(b []byte, _ ...any) (any, error)

func (DSDN) Size

func (DSDN) Size() int

type Enumeration

type Enumeration struct{}

func (Enumeration) Convert

func (Enumeration) Convert(b []byte, _ ...any) (any, error)

func (Enumeration) Size

func (Enumeration) Size() int

type GeneralizedTime

type GeneralizedTime struct{}

func (GeneralizedTime) Convert

func (GeneralizedTime) Convert(b []byte, _ ...any) (any, error)

func (GeneralizedTime) Size

func (GeneralizedTime) Size() int

type Interval

type Interval struct{}

func (Interval) Convert

func (Interval) Convert(b []byte, _ ...any) (any, error)

func (Interval) Size

func (Interval) Size() int

type ObjectIdentifier

type ObjectIdentifier struct{}

func (ObjectIdentifier) Convert

func (ObjectIdentifier) Convert(b []byte, opts ...any) (any, error)

func (ObjectIdentifier) Size

func (ObjectIdentifier) Size() int

type Raw

type Raw struct{}

func (Raw) Convert

func (Raw) Convert(b []byte, _ ...any) (any, error)

func (Raw) Size

func (Raw) Size() int

type SID

type SID struct{}

func (SID) Convert

func (SID) Convert(b []byte, _ ...any) (any, error)

func (SID) Size

func (SID) Size() int

type SecurityDescriptor added in v1.0.3

type SecurityDescriptor struct{}

func (SecurityDescriptor) Convert added in v1.0.3

func (SecurityDescriptor) Convert(b []byte, _ ...any) (any, error)

func (SecurityDescriptor) Size added in v1.0.3

func (SecurityDescriptor) Size() int

type StringUnicode

type StringUnicode struct{}

func (StringUnicode) Convert

func (StringUnicode) Convert(b []byte, _ ...any) (any, error)

func (StringUnicode) Size

func (StringUnicode) Size() int

type Syntax

type Syntax struct {
	Name      string
	Converter Converter
}

func (Syntax) MarshalJSON

func (s Syntax) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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