ldap

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

func Authorize() gin.HandlerFunc

"Basic " + base64.StdEncoding.EncodeToString([]byte(base))

func InitAuth

func InitAuth(conf Config)

Types

type Authority

type Authority struct {
	URL    string
	BaseDN string
}

type Config

type Config struct {
	URL    string `toml:"url"`
	BaseDN string `toml:"base_dn"`
}

Jump to

Keyboard shortcuts

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