Documentation
¶
Index ¶
- func Authenticate(username string, password string, c *conf.GlobalConfig, ...) (string, string, error)
- func CheckLdapConn(c *conf.GlobalConfig, discovery *conf.DiscoveryLdap) error
- func CheckOneLdapConn(l *conf.LdapConfig) error
- func DirectBind(username string, password string, l *conf.LdapConfig) (string, string, error)
- func GetLdapClient(l *conf.LdapConfig) (conn *ldap.Conn, err error)
- func GetOneLdapConfig(c *conf.GlobalConfig) *conf.LdapConfig
- func Search(username string, password string, l *conf.LdapConfig) (string, string, error)
- type LdapAuthError
- type LdapOpError
- type NoLdapServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
func Authenticate(username string, password string, c *conf.GlobalConfig, discovery *conf.DiscoveryLdap) (string, string, error)
func CheckLdapConn ¶
func CheckLdapConn(c *conf.GlobalConfig, discovery *conf.DiscoveryLdap) error
func CheckOneLdapConn ¶
func CheckOneLdapConn(l *conf.LdapConfig) error
func DirectBind ¶
func GetLdapClient ¶
func GetLdapClient(l *conf.LdapConfig) (conn *ldap.Conn, err error)
func GetOneLdapConfig ¶
func GetOneLdapConfig(c *conf.GlobalConfig) *conf.LdapConfig
Types ¶
type LdapAuthError ¶
type LdapAuthError struct {
Err error
}
func (*LdapAuthError) Error ¶
func (e *LdapAuthError) Error() string
func (*LdapAuthError) WrappedErrors ¶
func (e *LdapAuthError) WrappedErrors() []error
type LdapOpError ¶
type LdapOpError struct {
Err error
}
func (*LdapOpError) Error ¶
func (e *LdapOpError) Error() string
func (*LdapOpError) WrappedErrors ¶
func (e *LdapOpError) WrappedErrors() []error
type NoLdapServer ¶
type NoLdapServer struct{}
func (*NoLdapServer) Error ¶
func (e *NoLdapServer) Error() string
Click to show internal directories.
Click to hide internal directories.