ldap

package
v0.0.0-...-4560a53 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Zlib Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 *portainer.LDAPSettings) error

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

func (*Service) GetUserGroups

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

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

func (*Service) SearchGroups

func (*Service) SearchGroups(settings *portainer.LDAPSettings) ([]portainer.LDAPUser, error)

SearchGroups searches for groups with the specified settings

func (*Service) SearchUsers

func (*Service) SearchUsers(settings *portainer.LDAPSettings) ([]string, error)

SearchUsers searches for users with the specified settings

func (*Service) TestConnectivity

func (*Service) TestConnectivity(settings *portainer.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