ldap

package
v0.0.0-...-31c8788 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BackendName = "ldap"

BackendName name

Variables

This section is empty.

Functions

This section is empty.

Types

type LDAP

type LDAP struct {
	URL                *jsontypes.URL     `json:"url,omitempty"`
	BaseDN             string             `json:"base_dn,omitempty"`
	FilterDN           string             `json:"filter_dn,omitempty"`
	PrincipalSuffix    string             `json:"principal_suffix,omitempty"`
	BindDN             string             `json:"bind_dn,omitempty"`
	BindPassword       string             `json:"bind_password,omitempty"`
	TLS                bool               `json:"tls,omitempty"`
	InsecureSkipVerify bool               `json:"insecure_skip_verify,omitempty"`
	Timeout            jsontypes.Duration `json:"timeout,omitempty"`
	ConnectionPoolSize int                `json:"connection_pool_size,omitempty"`
	// contains filtered or unexported fields
}

LDAP backend provides authentication against LDAP paths, for example for Microsoft AD.

func NewDriver

func NewDriver() *LDAP

NewDriver returns a LDAP instance with some defaults

func (*LDAP) Authenticate

func (h *LDAP) Authenticate(r *http.Request) (string, error)

Authenticate fulfils the backend interface

func (*LDAP) Validate

func (h *LDAP) Validate() error

Validate that this module is ready to go

Jump to

Keyboard shortcuts

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