Documentation ¶
Index ¶
- type Service
- func (*Service) AuthenticateUser(username, password string, settings *portainer.LDAPSettings) error
- func (*Service) GetUserGroups(username string, settings *portainer.LDAPSettings) ([]string, error)
- func (*Service) SearchGroups(settings *portainer.LDAPSettings) ([]portainer.LDAPUser, error)
- func (*Service) SearchUsers(settings *portainer.LDAPSettings) ([]string, error)
- func (*Service) TestConnectivity(settings *portainer.LDAPSettings) error
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 ¶
GetUserGroups is used to retrieve user groups from LDAP/AD.
func (*Service) SearchGroups ¶
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.
Click to show internal directories.
Click to hide internal directories.