Documentation
¶
Index ¶
- func GetGroupsMember(members []string, userDNs map[string]string) []string
- func GetGroupsMemberOf(memberOf []string, groupDNs map[string]string) []string
- func GetUserGroups(users *ldap.SearchResult, groups *ldap.SearchResult, config *config.Config, ...) (map[string][]Group, error)
- func ParseDN(dn string) string
- func RequiredAttrs(attrType string, enabledMappers []string) []string
- func ValidMappers() []string
- type Group
- type Mapper
- func GetMappers(config *config.Config, logger *slog.Logger) []Mapper
- func NewUserGIDMapper(config *config.Config, logger *slog.Logger) Mapper
- func NewUserGIDsMapper(config *config.Config, logger *slog.Logger) Mapper
- func NewUserGroupsMapper(config *config.Config, logger *slog.Logger) Mapper
- func NewUserUIDMapper(config *config.Config, logger *slog.Logger) Mapper
- type UserGID
- type UserGIDs
- type UserGroups
- type UserUID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGroupsMember ¶ added in v0.5.0
func GetGroupsMemberOf ¶ added in v0.5.0
func GetUserGroups ¶ added in v0.5.0
func RequiredAttrs ¶
func ValidMappers ¶
func ValidMappers() []string
Types ¶
type Mapper ¶
type Mapper interface { Name() string ConfigMapName() string GetData(users *ldap.SearchResult, groups *ldap.SearchResult) (map[string]string, error) }
func NewUserGIDsMapper ¶ added in v0.5.0
func NewUserGroupsMapper ¶
type UserGID ¶
type UserGID struct {
// contains filtered or unexported fields
}
func (UserGID) ConfigMapName ¶
func (UserGID) GetData ¶
func (m UserGID) GetData(users *ldap.SearchResult, groups *ldap.SearchResult) (map[string]string, error)
type UserGIDs ¶ added in v0.5.0
type UserGIDs struct {
// contains filtered or unexported fields
}
func (UserGIDs) ConfigMapName ¶ added in v0.5.0
func (UserGIDs) GetData ¶ added in v0.5.0
func (m UserGIDs) GetData(users *ldap.SearchResult, groups *ldap.SearchResult) (map[string]string, error)
type UserGroups ¶
type UserGroups struct {
// contains filtered or unexported fields
}
func (UserGroups) ConfigMapName ¶
func (m UserGroups) ConfigMapName() string
func (UserGroups) GetData ¶
func (m UserGroups) GetData(users *ldap.SearchResult, groups *ldap.SearchResult) (map[string]string, error)
func (UserGroups) Name ¶
func (m UserGroups) Name() string
type UserUID ¶
type UserUID struct {
// contains filtered or unexported fields
}
func (UserUID) ConfigMapName ¶
func (UserUID) GetData ¶
func (m UserUID) GetData(users *ldap.SearchResult, groups *ldap.SearchResult) (map[string]string, error)
Click to show internal directories.
Click to hide internal directories.