ldap

package
v0.0.0-...-e917273 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr   string          `yaml:"addr"`
	TLS    bool            `yaml:"tls"`
	User   string          `yaml:"user"`
	Pass   string          `yaml:"pass"`
	Search []*SearchConfig `yaml:"search"`
}

Config is a config struct for LDAP.

func (*Config) Conn

func (c *Config) Conn() (*v3.Conn, error)

Conn returns a configured client connection.

type SearchConfig

type SearchConfig struct {
	BaseDN       string   `yaml:"baseDN"`
	Scope        int      `yaml:"scope"`
	DerefAliases int      `yaml:"derefAliases"`
	SizeLimit    int      `yaml:"sizeLimit"`
	TimeLimit    int      `yaml:"timeLimit"`
	Filter       string   `yaml:"filter"`
	Attributes   []string `yaml:"attributes"`
}

SearchConfig is configuration for a search request.

Jump to

Keyboard shortcuts

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