ldap

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 7 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
}

ConnWithReconnect implements the ldap.Client interface

func NewLDAPWithReconnect

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

func (ConnWithReconnect) Add

func (ConnWithReconnect) Bind

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

func (ConnWithReconnect) Close

func (c ConnWithReconnect) Close() (err error)

Close implements the ldap.Client interface

func (ConnWithReconnect) Compare

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

func (ConnWithReconnect) Del

func (ConnWithReconnect) DirSync

func (c ConnWithReconnect) DirSync(searchRequest *ldap.SearchRequest, flags, maxAttrCount int64, cookie []byte) (*ldap.SearchResult, error)

DirSync implements the ldap.Client interface

func (ConnWithReconnect) DirSyncAsync

func (c ConnWithReconnect) DirSyncAsync(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int, flags, maxAttrCount int64, cookie []byte) ldap.Response

DirSyncAsync implements the ldap.Client interface

func (ConnWithReconnect) Extended

Extended implements the ldap.Client interface

func (ConnWithReconnect) ExternalBind

func (c ConnWithReconnect) ExternalBind() error

func (ConnWithReconnect) GetConnection

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

func (ConnWithReconnect) GetLastError

func (c ConnWithReconnect) GetLastError() error

GetLastError implements the ldap.Client interface

func (ConnWithReconnect) IsClosing

func (c ConnWithReconnect) IsClosing() bool

func (ConnWithReconnect) Modify

func (ConnWithReconnect) ModifyDN

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 (ConnWithReconnect) Search

func (ConnWithReconnect) SearchAsync

func (c ConnWithReconnect) SearchAsync(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int) ldap.Response

SearchAsync implements the ldap.Client interface

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 (ConnWithReconnect) Start

func (c ConnWithReconnect) Start()

func (ConnWithReconnect) StartTLS

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

func (ConnWithReconnect) Syncrepl

func (c ConnWithReconnect) Syncrepl(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int, mode ldap.ControlSyncRequestMode, cookie []byte, reloadHint bool) ldap.Response

Syncrepl implements the ldap.Client interface

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