ldif

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 29 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIndexAttribute

func AddIndexAttribute(name string, indices string)

func NewLDIFHandler

func NewLDIFHandler(logger logrus.FieldLogger, fn string, options *Options) (handler.Handler, error)

func NewLDIFMiddleware

func NewLDIFMiddleware(logger logrus.FieldLogger, fn string, options *Options) (handler.Middleware, error)

func RemoveIndexAttribute

func RemoveIndexAttribute(name string)

func TemplateFuncs

func TemplateFuncs(m map[string]interface{}, options *Options) template.FuncMap

Types

type Index

type Index interface {
	Add(name, op string, values []string, entry *ldifEntry) bool
	Load(name, op string, params ...string) ([]*ldifEntry, bool)
}

type Options

type Options struct {
	BaseDN                  string
	AdminDN                 string
	AllowLocalAnonymousBind bool

	DefaultCompany    string
	DefaultMailDomain string

	TemplateExtraVars      map[string]interface{}
	TemplateEngineDisabled bool
	TemplateDebug          bool
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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