Documentation
¶
Index ¶
- Constants
- func EscapeFilter(filter string) string
- type Attribute
- type Config
- type Conn
- type Entry
- type Mapper
- func (m *Mapper) ApplyTransformation(value interface{}, transformationName string) (interface{}, error)
- func (m *Mapper) ExtractParameters(jwtClaims types.JWTClaims, inputMapping []types.InputMapping) (map[string]interface{}, error)
- func (m *Mapper) GetSupportedTransformations() []string
- func (m *Mapper) TransformResults(rawData map[string]interface{}, outputMapping []types.OutputMapping) (map[string]interface{}, error)
- func (m *Mapper) ValidateInputMapping(inputMapping []types.InputMapping) error
- func (m *Mapper) ValidateOutputMapping(outputMapping []types.OutputMapping) error
- type Provider
- func (p *Provider) Close() error
- func (p *Provider) GetMapper() types.Mapper
- func (p *Provider) HealthCheck(_ context.Context) error
- func (p *Provider) Name() string
- func (p *Provider) ResolveEntity(ctx context.Context, strategy types.MappingStrategy, ...) (*types.RawResult, error)
- func (p *Provider) Type() string
- type SearchRequest
- type SearchResult
Constants ¶
const ( ScopeBaseObject = 0 ScopeSingleLevel = 1 ScopeWholeSubtree = 2 NeverDerefAliases = 0 )
LDAP constants (stubs)
Variables ¶
This section is empty.
Functions ¶
func EscapeFilter ¶
Types ¶
type Config ¶
type Config struct {
// Connection settings
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
UseTLS bool `mapstructure:"use_tls"`
SkipVerify bool `mapstructure:"skip_verify"`
Timeout time.Duration `mapstructure:"timeout"`
// Authentication
BindDN string `mapstructure:"bind_dn"`
BindPassword string `mapstructure:"bind_password"`
// Connection pool settings
MaxConnections int `mapstructure:"max_connections"`
IdleTimeout time.Duration `mapstructure:"idle_timeout"`
ConnectTimeout time.Duration `mapstructure:"connect_timeout"`
RequestTimeout time.Duration `mapstructure:"request_timeout"`
// Health check settings
HealthCheckBindTest bool `mapstructure:"health_check_bind_test"`
HealthCheckTimeout time.Duration `mapstructure:"health_check_timeout"`
// Description for this LDAP provider instance
Description string `mapstructure:"description"`
}
LDAPConfig defines configuration for LDAP directory providers
type Conn ¶
type Conn struct{}
LDAP types (stubs)
func (*Conn) Search ¶
func (c *Conn) Search(_ *SearchRequest) (*SearchResult, error)
func (*Conn) SetTimeout ¶
func (c *Conn) SetTimeout(_ interface{})
type Mapper ¶
type Mapper struct {
// contains filtered or unexported fields
}
Mapper handles mapping for LDAP providers
func (*Mapper) ApplyTransformation ¶
func (m *Mapper) ApplyTransformation(value interface{}, transformationName string) (interface{}, error)
ApplyTransformation applies LDAP-specific transformations
func (*Mapper) ExtractParameters ¶
func (m *Mapper) ExtractParameters(jwtClaims types.JWTClaims, inputMapping []types.InputMapping) (map[string]interface{}, error)
ExtractParameters extracts parameters for LDAP queries with proper validation
func (*Mapper) GetSupportedTransformations ¶
GetSupportedTransformations returns LDAP-specific transformations
func (*Mapper) TransformResults ¶
func (m *Mapper) TransformResults(rawData map[string]interface{}, outputMapping []types.OutputMapping) (map[string]interface{}, error)
TransformResults transforms LDAP search results to standardized claims
func (*Mapper) ValidateInputMapping ¶
func (m *Mapper) ValidateInputMapping(inputMapping []types.InputMapping) error
ValidateInputMapping validates LDAP-specific input mapping requirements
func (*Mapper) ValidateOutputMapping ¶
func (m *Mapper) ValidateOutputMapping(outputMapping []types.OutputMapping) error
ValidateOutputMapping validates LDAP-specific output mapping requirements
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the Provider interface for LDAP directories
func NewProvider ¶
NewProvider creates a new LDAP provider
func (*Provider) HealthCheck ¶
HealthCheck verifies the LDAP server is accessible