Documentation
¶
Index ¶
- type Config
- type ConnWithReconnect
- func (c ConnWithReconnect) Add(a *ldap.AddRequest) error
- func (c ConnWithReconnect) Bind(username, password string) error
- func (c ConnWithReconnect) Close() (err error)
- func (c ConnWithReconnect) Compare(dn, attribute, value string) (bool, error)
- func (c ConnWithReconnect) Del(d *ldap.DelRequest) error
- func (c ConnWithReconnect) DirSync(searchRequest *ldap.SearchRequest, flags, maxAttrCount int64, cookie []byte) (*ldap.SearchResult, error)
- func (c ConnWithReconnect) DirSyncAsync(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int, ...) ldap.Response
- func (c ConnWithReconnect) Extended(_ *ldap.ExtendedRequest) (*ldap.ExtendedResponse, error)
- func (c ConnWithReconnect) ExternalBind() error
- func (c ConnWithReconnect) GetConnection() (*ldap.Conn, error)
- func (c ConnWithReconnect) GetLastError() error
- func (c ConnWithReconnect) IsClosing() bool
- func (c ConnWithReconnect) Modify(m *ldap.ModifyRequest) error
- func (c ConnWithReconnect) ModifyDN(m *ldap.ModifyDNRequest) error
- func (c ConnWithReconnect) ModifyWithResult(m *ldap.ModifyRequest) (*ldap.ModifyResult, error)
- func (c ConnWithReconnect) NTLMUnauthenticatedBind(domain, username string) error
- func (c ConnWithReconnect) PasswordModify(m *ldap.PasswordModifyRequest) (*ldap.PasswordModifyResult, error)
- func (c ConnWithReconnect) Search(sr *ldap.SearchRequest) (*ldap.SearchResult, error)
- func (c ConnWithReconnect) SearchAsync(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int) ldap.Response
- func (c ConnWithReconnect) SearchWithPaging(searchRequest *ldap.SearchRequest, pagingSize uint32) (*ldap.SearchResult, error)
- func (c ConnWithReconnect) SetTimeout(time.Duration)
- func (c ConnWithReconnect) SimpleBind(*ldap.SimpleBindRequest) (*ldap.SimpleBindResult, error)
- func (c ConnWithReconnect) Start()
- func (c ConnWithReconnect) StartTLS(*tls.Config) error
- func (c ConnWithReconnect) Syncrepl(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int, ...) ldap.Response
- func (c ConnWithReconnect) TLSConnectionState() (tls.ConnectionState, bool)
- func (c ConnWithReconnect) UnauthenticatedBind(username string) error
- func (c ConnWithReconnect) Unbind() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 (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() (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 (c ConnWithReconnect) Del(d *ldap.DelRequest) error
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 ¶
func (c ConnWithReconnect) Extended(_ *ldap.ExtendedRequest) (*ldap.ExtendedResponse, error)
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 (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) 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 (c ConnWithReconnect) SimpleBind(*ldap.SimpleBindRequest) (*ldap.SimpleBindResult, error)
func (ConnWithReconnect) Start ¶
func (c ConnWithReconnect) Start()
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
Click to show internal directories.
Click to hide internal directories.