Help us shape the future of Go! Take the 2026 Go Developer Survey

ldap

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLdapDriver

func NewLdapDriver(ctx context.Context, cfg Config) (sdk.Driver, error)

NewLdapDriver returns a new ldap auth driver.

Types

type Config

type Config struct {
	Host            string // 192.168.1.32
	Port            int    // 636
	SSL             bool   // true
	RootDN          string // dc=ejnserver,dc=fr
	UserSearchBase  string // ou=people
	UserSearch      string // uid={{.search}}
	UserFullname    string // {{.givenName}} {{.sn}}
	ManagerDN       string // cn=admin,dc=ejnserver,dc=fr
	ManagerPassword string // SECRET_PASSWORD_MANAGER
}

Config handles all config to connect to the LDAP.

type Entry

type Entry struct {
	DN         string
	Attributes map[string]string
}

Entry represents a LDAP entity

Jump to

Keyboard shortcuts

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