ldap

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Principals

type Principals struct {
	Address         string
	Port            int
	BindUser        string
	BindPassword    string
	UserSearchBase  string
	UserSearchStr   string
	GroupSearchBase string
	GroupSearchStr  string
	UseTLS          bool
	TLSVerify       bool
	Prefix          string
	TransformCase   string
}

Principals struct represents LDAP options for getting principals list from LDAP.

func (Principals) Get

func (p Principals) Get(ctx context.Context, payload []byte) (context.Context, []string, error)

Get method is used to get the list of principals associated to a specific user.

func (*Principals) Init

func (p *Principals) Init(config *viper.Viper) error

Init method is used to ingest config of Principals

Jump to

Keyboard shortcuts

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