schema

package
v1.5.12 Latest Latest
Warning

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

Go to latest
Published: May 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaName   = "ldap"
	APIPrefix    = "/ldap/v1"
	MethodPlain  = "ldap"
	MethodSecure = "ldaps"
	PortPlain    = 389
	PortSecure   = 636

	// Time between connection retries
	MinRetryInterval = time.Second * 5
	MaxRetries       = 10

	// Maximum number of entries to return in a single request
	MaxListPaging = 500

	// Maximum list entries to return
	MaxListEntries = 1000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
	DN         string `json:"dn"`
	url.Values `json:"attrs,omitempty"`
}

func NewObject

func NewObject(v ...string) *Object

func NewObjectFromEntry

func NewObjectFromEntry(entry *ldap.Entry) *Object

func (*Object) String

func (o *Object) String() string

type ObjectList

type ObjectList struct {
	Count uint64    `json:"count"`
	Body  []*Object `json:"body,omitempty"`
}

func (*ObjectList) String

func (o *ObjectList) String() string

type ObjectListRequest

type ObjectListRequest struct {
	pg.OffsetLimit
	Filter *string `json:"filter,omitempty"`
}

func (*ObjectListRequest) String

func (o *ObjectListRequest) String() string

Jump to

Keyboard shortcuts

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