ldap

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Searcher   Searcher
	SearchBase string
}

func New

func New(ldapURL string, ldapUser string, ldapPassword string, searchBase string) *API

func (*API) Close

func (a *API) Close()

func (*API) Find

func (a *API) Find(identifier string) (string, error)

func (*API) GetPersonByEmail

func (a *API) GetPersonByEmail(email string) (string, error)

type Searcher

type Searcher interface {
	Search(searchRequest *ldapv3.SearchRequest) (*ldapv3.SearchResult, error)
	Close()
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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