ldap

package
v1.4.15 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c Config) (*ldap, error)

Types

type Config

type Config struct {
	URL      string `hcl:"url,required" description:"LDAP server URL, user and optional password for bind"`
	User     string `hcl:"user,optional" description:"Bind user, if not specified in URL"`
	Password string `hcl:"password,optional" description:"Bind password, if not specified in URL"`
	DN       string `hcl:"dn,required" description:"Distinguished name"`
	TLS      struct {
		SkipVerify bool `hcl:"skip-verify" description:"Skip certificate verification"`
	} `hcl:"tls,optional" description:"TLS configuration"`
	Schema schema.Schema `hcl:"schema,optional" description:"LDAP Schema"`
}

LDAP configuration

func (Config) Description

func (c Config) Description() string

func (Config) Name

func (c Config) Name() string

func (Config) New

func (c Config) New() (server.Task, error)

func (Config) ObjectSchema

func (c Config) ObjectSchema() *schema.Schema

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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