ldap

package
v0.0.0-...-22e582f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetTimeout

func SetTimeout(timeout time.Duration)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL