ldap

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(opts ...Option) auth.Provider

NewProvider creates a new ldap authentication provider.

Types

type Option

type Option func(*Provider)

func BaseDN

func BaseDN(baseDN string) Option

func BindDN

func BindDN(bindDN string) Option

func BindPassword

func BindPassword(bindPassword string) Option

func Host

func Host(host string) Option

func Port

func Port(port int) Option

func UserFilter

func UserFilter(userFilter string) Option

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider a ldap authentication provider. TODO: support configuration later

func (*Provider) Authenticate

func (p *Provider) Authenticate(user, password string) (*auth.ExternalAccount, error)

Authenticate ..

Jump to

Keyboard shortcuts

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