ldap

package
v0.0.0-...-865c5c3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

func Connect

func Connect(info ConnectionInfo) (*Connection, error)

func (*Connection) Authenticate

func (conn *Connection) Authenticate(username, password string) (bool, error)

func (*Connection) FindUser

func (conn *Connection) FindUser(username string) (*UserInfo, error)

type ConnectionInfo

type ConnectionInfo struct {
	Hostname          string
	Port              uint16
	Username          string
	Password          string
	BaseDN            string
	Scope             int
	UserFilter        string
	UsernameAttribute string
	MailAttribute     string
}

type UserInfo

type UserInfo struct {
	Username string
	Mail     []string
}

Jump to

Keyboard shortcuts

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