ldap

package
v0.0.0-...-b1a156a Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Zlib Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrUserNotFound defines an error raised when the user is not found via LDAP search
	// or that too many entries (> 1) are returned.
	ErrUserNotFound = baasapi.Error("User not found or too many entries returned")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

Service represents a service used to authenticate users against a LDAP/AD.

func (*Service) AuthenticateUser

func (*Service) AuthenticateUser(username, password string, settings *baasapi.LDAPSettings) error

AuthenticateUser is used to authenticate a user against a LDAP/AD.

func (*Service) GetUserGroups

func (*Service) GetUserGroups(username string, settings *baasapi.LDAPSettings) ([]string, error)

GetUserGroups is used to retrieve user groups from LDAP/AD.

func (*Service) TestConnectivity

func (*Service) TestConnectivity(settings *baasapi.LDAPSettings) error

TestConnectivity is used to test a connection against the LDAP server using the credentials specified in the LDAPSettings.

Jump to

Keyboard shortcuts

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