Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLDAPTimeout = errors.New("LDAP timeout")
Functions ¶
func BasicAuthLDAP ¶
func BasicAuthLDAP(ldapAuth *LDAPAuth, next http.HandlerFunc) http.HandlerFunc
BasicAuthLDAP is a middleware wrapping the target HTTP HandlerFunc. It retrieves BasicAuth credentials and authenticate against LDAP.
func SetLDAPDefaultTimeout ¶
Types ¶
type BasicAuth ¶
type BasicAuth struct {
// contains filtered or unexported fields
}
func NewBasicAuth ¶
func (*BasicAuth) Wrap ¶
func (b *BasicAuth) Wrap(next http.HandlerFunc) http.HandlerFunc
type LDAPAuth ¶
type LDAPAuth struct {
// contains filtered or unexported fields
}
func NewLDAPAuth ¶
func (*LDAPAuth) AuthenticateUser ¶
func (*LDAPAuth) SetMaxConnectionLifetime ¶
SetMaxConnectionLifetime sets the maximum lifetime of a connection.
The maximum lifetime is the maximum amount of time a connection may be reused for. This is not a guarantee, as the connection may have been closed by the server before reaching that timer.
Click to show internal directories.
Click to hide internal directories.