ldapshim

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ldap

type Ldap interface {
	Dial(network, addr string) (LdapConnection, error)
	DialTLS(network, addr string, config *tls.Config) (LdapConnection, error)
	NewSearchRequest(string, int, int, int, int, bool, string, []string, []ldap.Control) *ldap.SearchRequest
}

type LdapConnection

type LdapConnection interface {
	SetTimeout(timeout time.Duration)
	Close()
	Bind(string, string) error
	Search(*ldap.SearchRequest) (*ldap.SearchResult, error)
}

Manually generated ldap interface

type LdapShim

type LdapShim struct{}

func (*LdapShim) Dial

func (l *LdapShim) Dial(network, addr string) (LdapConnection, error)

func (*LdapShim) DialTLS

func (l *LdapShim) DialTLS(network string, addr string, config *tls.Config) (LdapConnection, error)

func (*LdapShim) NewSearchRequest

func (l *LdapShim) NewSearchRequest(a string, b int, c int, d int, e int, f bool, g string, h []string, i []ldap.Control) *ldap.SearchRequest

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