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 ¶
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) Bind ¶
Bind with specified DN and password, used in authentication
func (*Session) ConnectionTest ¶
ConnectionTest - test ldap session connection with system default setting
Source Files
¶
- ldap.go
Click to show internal directories.
Click to hide internal directories.