Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetTimeout ¶
SetTimeout changes timeout used by `ldap` package by setting package-level variable.
Types ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
Authorizer provides access control level backed by LDAP server.
func New ¶
func New(c *conf.APIAuthLDAP) (*Authorizer, error)
New returns fresh instance of LDAP authorizer.
func (*Authorizer) GetProjectAccessLevel ¶
func (a *Authorizer) GetProjectAccessLevel(r *http.Request, group string, project string) (auth.AccessLevel, error)
GetProjectAccessLevel returns type of access to project for request sent by client.
Click to show internal directories.
Click to hide internal directories.