Documentation ¶
Index ¶
- func ConnectionTestWithConfig(ldapConfig models.LdapConf) error
- type Session
- func (session *Session) Bind(dn string, password string) error
- func (session *Session) Close()
- func (session *Session) ConnectionTest() error
- func (session *Session) Open() error
- func (session *Session) SearchLdap(filter string) (*goldap.SearchResult, error)
- func (session *Session) SearchUser(username string) ([]models.LdapUser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectionTestWithConfig ¶
ConnectionTestWithConfig - test ldap session connection, out of the scope of normal session create/close
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session - define a LDAP session
func CreateWithConfig ¶
CreateWithConfig - create a Session with internal config
func LoadSystemLdapConfig ¶
LoadSystemLdapConfig - load LDAP configure from adminserver
func (*Session) ConnectionTest ¶
ConnectionTest - test ldap session connection with system default setting
func (*Session) SearchLdap ¶
func (session *Session) SearchLdap(filter string) (*goldap.SearchResult, error)
SearchLdap to search ldap with the provide filter
Click to show internal directories.
Click to hide internal directories.