ldapifc

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeLDAPClient

type FakeLDAPClient struct {
	ConnToReturn ldaputil.Connection
}

FakeLDAPClient can be used to inspect the LDAP requests that have been constructed, and to inject responses.

func (*FakeLDAPClient) Dial

func (f *FakeLDAPClient) Dial(network, addr string) (ldaputil.Connection, error)

func (*FakeLDAPClient) DialTLS

func (f *FakeLDAPClient) DialTLS(network, addr string, config *tls.Config) (ldaputil.Connection, error)

type FakeLDAPConnection

type FakeLDAPConnection struct {
	ModifyRequestToExpect *ldap.ModifyRequest
	SearchRequestToExpect *ldap.SearchRequest
	SearchResultToReturn  *ldap.SearchResult
}

func (*FakeLDAPConnection) Bind

func (f *FakeLDAPConnection) Bind(username, password string) error

func (*FakeLDAPConnection) Close

func (f *FakeLDAPConnection) Close()

func (*FakeLDAPConnection) Modify

func (f *FakeLDAPConnection) Modify(modifyRequest *ldap.ModifyRequest) error

func (*FakeLDAPConnection) Search

func (f *FakeLDAPConnection) Search(searchRequest *ldap.SearchRequest) (*ldap.SearchResult, error)

func (*FakeLDAPConnection) SetTimeout added in v0.6.1

func (f *FakeLDAPConnection) SetTimeout(timeout time.Duration)

func (*FakeLDAPConnection) StartTLS

func (f *FakeLDAPConnection) StartTLS(config *tls.Config) error

func (*FakeLDAPConnection) UnauthenticatedBind

func (f *FakeLDAPConnection) UnauthenticatedBind(username string) error

Jump to

Keyboard shortcuts

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