ldap

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backend

func Backend() *backend

func EscapeLDAPValue added in v0.2.0

func EscapeLDAPValue(input string) string

func Factory

func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)

Types

type CLIHandler

type CLIHandler struct{}

func (*CLIHandler) Auth

func (h *CLIHandler) Auth(c *api.Client, m map[string]string) (*api.Secret, error)

func (*CLIHandler) Help

func (h *CLIHandler) Help() string

type ConfigEntry

type ConfigEntry struct {
	Url                string `json:"url"`
	UserDN             string `json:"userdn"`
	GroupDN            string `json:"groupdn"`
	GroupFilter        string `json:"groupfilter"`
	GroupAttr          string `json:"groupattr"`
	UPNDomain          string `json:"upndomain"`
	UserAttr           string `json:"userattr"`
	Certificate        string `json:"certificate"`
	InsecureTLS        bool   `json:"insecure_tls"`
	StartTLS           bool   `json:"starttls"`
	BindDN             string `json:"binddn"`
	BindPassword       string `json:"bindpass"`
	DenyNullBind       bool   `json:"deny_null_bind"`
	DiscoverDN         bool   `json:"discoverdn"`
	TLSMinVersion      string `json:"tls_min_version"`
	TLSMaxVersion      string `json:"tls_max_version"`
	CaseSensitiveNames *bool  `json:"case_sensitive_names,omitempty`
	// contains filtered or unexported fields
}

func (*ConfigEntry) DialLDAP

func (c *ConfigEntry) DialLDAP() (*ldap.Conn, error)

func (*ConfigEntry) GetTLSConfig added in v0.2.0

func (c *ConfigEntry) GetTLSConfig(host string) (*tls.Config, error)

type GroupEntry

type GroupEntry struct {
	Policies []string
}

type UserEntry added in v0.3.0

type UserEntry struct {
	Groups   []string
	Policies []string
}

Jump to

Keyboard shortcuts

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