Documentation
¶
Index ¶
- func GetIdentitySeparator() string
- func GetUserIdentity(identities []client.Identity, userType string) (client.Identity, bool)
- type ConstantsConfig
- type LClient
- func (l *LClient) GenerateToken(jsonInput map[string]string) (model.Token, int, error)
- func (l *LClient) GetGroupIdentity(groupDN []string, lConn *ldap.Conn) ([]client.Identity, error)
- func (l *LClient) GetIdentity(distinguishedName string, scope string) (client.Identity, error)
- func (l *LClient) InitializeSearchConfig() *SearchConfig
- func (l *LClient) RefreshToken(json map[string]string) (model.Token, int, error)
- func (l *LClient) SearchIdentities(name string, exactMatch bool) ([]client.Identity, error)
- func (l *LClient) TestLogin(testAuthConfig *model.TestAuthConfig, accessToken string) (int, error)
- type SearchConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIdentitySeparator ¶
func GetIdentitySeparator() string
func GetUserIdentity ¶
GetUserIdentity returns the "user" from the list of identities
Types ¶
type ConstantsConfig ¶
type LClient ¶
type LClient struct { Config *model.LdapConfig ConstantsConfig *ConstantsConfig SearchConfig *SearchConfig AccessMode string AllowedIdentities string Enabled bool }
LClient is the ldap client
func (*LClient) GenerateToken ¶
GenerateToken generates token
func (*LClient) GetGroupIdentity ¶ added in v0.4.17
func (*LClient) GetIdentity ¶
GetIdentity gets identities
func (*LClient) InitializeSearchConfig ¶
func (l *LClient) InitializeSearchConfig() *SearchConfig
func (*LClient) RefreshToken ¶
func (*LClient) SearchIdentities ¶
SearchIdentities returns the identity by name
Click to show internal directories.
Click to hide internal directories.