ldapifc

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 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) DialURL added in v0.16.1

func (f *FakeLDAPClient) DialURL(addr string, opts ...ldap.DialOpt) (ldaputil.Connection, error)

type FakeLDAPConnection

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

func (*FakeLDAPConnection) Add added in v0.11.1

func (f *FakeLDAPConnection) Add(addRequest *ldap.AddRequest) error

func (*FakeLDAPConnection) Bind

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

func (*FakeLDAPConnection) Close

func (f *FakeLDAPConnection) Close() error

func (*FakeLDAPConnection) Del added in v0.11.1

func (f *FakeLDAPConnection) Del(delRequest *ldap.DelRequest) error

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