Versions in this module Expand all Collapse all v0 v0.0.1 Sep 19, 2024 Changes in this version + func AuthenticateLDAP(conn LDAPConn, cfg *LDAPConfig, login, password string) (string, error) + func GenerateJWTToken(secretKey []byte, expInterval time.Duration) (string, error) + func ValidateJWTToken(tokenString string, secretKey []byte) error + type LDAPConfig struct + AllowedGroups []string + BaseDN string + Host string + Port int + func (ldapc *LDAPConfig) Validate() error + type LDAPConn interface + Bind func(username, password string) error + Close func() + Search func(searchRequest *ldap.SearchRequest) (*ldap.SearchResult, error) + func NewLDAPWrapper(conn *ldap.Conn) LDAPConn