Documentation ¶
Index ¶
- type DomainInfo
- type LDAPSession
- func (w *LDAPSession) Close()
- func (w *LDAPSession) CloseChannels()
- func (w *LDAPSession) ExecuteSearchRequest(searchRequest *ldap.SearchRequest) error
- func (w *LDAPSession) GetDefaultNamingContext() (string, error)
- func (w *LDAPSession) GetPagedSearchResults(request *ldap.SearchRequest) (result *ldap.SearchResult, err error)
- func (w *LDAPSession) GetSearchResults(request *ldap.SearchRequest) (result *ldap.SearchResult, err error)
- func (w *LDAPSession) MakeSimpleSearchRequest(filter string, attrs []string) *ldap.SearchRequest
- func (w *LDAPSession) ManualWriteSearchResultsToChan(results *ldap.SearchResult)
- func (w *LDAPSession) NTLMBind(username, password, hash string) (err error)
- func (w *LDAPSession) NewChannels(ctx context.Context)
- func (w *LDAPSession) ReturnMetadataResults() error
- func (w *LDAPSession) SetChannels(chs *ResultChannels, ctx context.Context)
- func (w *LDAPSession) SimpleBind(username, password string) (err error)
- type LDAPSessionOptions
- type ResultChannels
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DomainInfo ¶
type LDAPSession ¶
type LDAPSession struct { LConn *ldap.Conn PageSize uint32 BaseDN string DomainInfo DomainInfo Log *logrus.Entry Channels *ResultChannels // contains filtered or unexported fields }
func NewLDAPSession ¶
func NewLDAPSession(options *LDAPSessionOptions, ctx context.Context) (sess *LDAPSession, err error)
func (*LDAPSession) Close ¶
func (w *LDAPSession) Close()
func (*LDAPSession) CloseChannels ¶
func (w *LDAPSession) CloseChannels()
func (*LDAPSession) ExecuteSearchRequest ¶
func (w *LDAPSession) ExecuteSearchRequest(searchRequest *ldap.SearchRequest) error
ExecuteSearchRequest performs a paged search and writes results to the LDAPsession's defined results channel. it only returns an err
func (*LDAPSession) GetDefaultNamingContext ¶
func (w *LDAPSession) GetDefaultNamingContext() (string, error)
func (*LDAPSession) GetPagedSearchResults ¶
func (w *LDAPSession) GetPagedSearchResults(request *ldap.SearchRequest) (result *ldap.SearchResult, err error)
GetPagedSearchResults is a synchronous operation that will populate and return an ldap.SearchResult object
func (*LDAPSession) GetSearchResults ¶
func (w *LDAPSession) GetSearchResults(request *ldap.SearchRequest) (result *ldap.SearchResult, err error)
func (*LDAPSession) MakeSimpleSearchRequest ¶
func (w *LDAPSession) MakeSimpleSearchRequest(filter string, attrs []string) *ldap.SearchRequest
func (*LDAPSession) ManualWriteSearchResultsToChan ¶
func (w *LDAPSession) ManualWriteSearchResultsToChan(results *ldap.SearchResult)
func (*LDAPSession) NTLMBind ¶
func (w *LDAPSession) NTLMBind(username, password, hash string) (err error)
func (*LDAPSession) NewChannels ¶
func (w *LDAPSession) NewChannels(ctx context.Context)
func (*LDAPSession) ReturnMetadataResults ¶
func (w *LDAPSession) ReturnMetadataResults() error
func (*LDAPSession) SetChannels ¶
func (w *LDAPSession) SetChannels(chs *ResultChannels, ctx context.Context)
func (*LDAPSession) SimpleBind ¶
func (w *LDAPSession) SimpleBind(username, password string) (err error)
type LDAPSessionOptions ¶
type ResultChannels ¶
type ResultChannels struct { Entries chan *ldap.Entry Referrals chan string Controls chan ldap.Control }
Click to show internal directories.
Click to hide internal directories.