ldap

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	*auth.BasicAuth
	// contains filtered or unexported fields
}

Cache represents a cache of LDAP query results so that many concurrent requests don't DDoS the LDAP server.

func New

func New(config *config.LDAPConfig) (*Cache, error)

func (*Cache) CheckAuth

func (c *Cache) CheckAuth(r *http.Request) string

func (*Cache) NewContext

func (c *Cache) NewContext(ctx context.Context, r *http.Request) context.Context

func (*Cache) Wrap

Jump to

Keyboard shortcuts

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