ldap

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-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 Config

type Config struct {
	URI          string
	BindDN       string
	BindPassword string
	TLSConfig    *tls.Config
}

type ConnWithReconnect

type ConnWithReconnect struct {
	// contains filtered or unexported fields
}

Implements the ldap.CLient interface

func NewLDAPWithReconnect

func NewLDAPWithReconnect(logger *log.Logger, config Config) ConnWithReconnect

func (ConnWithReconnect) Add

func (c ConnWithReconnect) Add(a *ldap.AddRequest) error

func (ConnWithReconnect) Bind

func (c ConnWithReconnect) Bind(username, password string) error

func (ConnWithReconnect) Close

func (c ConnWithReconnect) Close()

func (ConnWithReconnect) Compare

func (c ConnWithReconnect) Compare(dn, attribute, value string) (bool, error)

func (ConnWithReconnect) Del

func (c ConnWithReconnect) Del(d *ldap.DelRequest) error

func (ConnWithReconnect) ExternalBind

func (c ConnWithReconnect) ExternalBind() error

func (ConnWithReconnect) GetConnection

func (c ConnWithReconnect) GetConnection() (*ldap.Conn, error)

func (ConnWithReconnect) IsClosing

func (c ConnWithReconnect) IsClosing() bool

func (ConnWithReconnect) Modify

func (c ConnWithReconnect) Modify(m *ldap.ModifyRequest) error

func (ConnWithReconnect) ModifyDN

func (c ConnWithReconnect) ModifyDN(m *ldap.ModifyDNRequest) error

func (ConnWithReconnect) ModifyWithResult

func (c ConnWithReconnect) ModifyWithResult(m *ldap.ModifyRequest) (*ldap.ModifyResult, error)

func (ConnWithReconnect) NTLMUnauthenticatedBind

func (c ConnWithReconnect) NTLMUnauthenticatedBind(domain, username string) error

NTLMUnauthenticatedBind implements the ldap.Client interface

func (ConnWithReconnect) PasswordModify

func (c ConnWithReconnect) PasswordModify(m *ldap.PasswordModifyRequest) (*ldap.PasswordModifyResult, error)

func (ConnWithReconnect) Search

func (c ConnWithReconnect) Search(sr *ldap.SearchRequest) (*ldap.SearchResult, error)

func (ConnWithReconnect) SearchWithPaging

func (c ConnWithReconnect) SearchWithPaging(searchRequest *ldap.SearchRequest, pagingSize uint32) (*ldap.SearchResult, error)

func (ConnWithReconnect) SetTimeout

func (c ConnWithReconnect) SetTimeout(time.Duration)

func (ConnWithReconnect) SimpleBind

func (c ConnWithReconnect) SimpleBind(*ldap.SimpleBindRequest) (*ldap.SimpleBindResult, error)

func (ConnWithReconnect) Start

func (c ConnWithReconnect) Start()

func (ConnWithReconnect) StartTLS

func (c ConnWithReconnect) StartTLS(*tls.Config) error

func (ConnWithReconnect) TLSConnectionState

func (c ConnWithReconnect) TLSConnectionState() (tls.ConnectionState, bool)

TLSConnectionState implements the ldap.Client interface

func (ConnWithReconnect) UnauthenticatedBind

func (c ConnWithReconnect) UnauthenticatedBind(username string) error

func (ConnWithReconnect) Unbind

func (c ConnWithReconnect) Unbind() error

Unbind implements the ldap.Client interface

Jump to

Keyboard shortcuts

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