Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTimeout = 10 * time.Second
Functions ¶
This section is empty.
Types ¶
type LdapConfig ¶
type LdapConfig struct {
Domain string `json:"domain"`
BindUser string `json:"bindUser"`
BindPassword string `json:"bindPassword"`
BaseDN string `json:"basedn"`
Servers []LdapServer `json:"servers"`
Certificate []byte `json:"certificate,omitempty"` // This is the CA certificate
// contains filtered or unexported fields
}
type LdapServer ¶
type LdapsClient ¶
type LdapsClient struct {
// contains filtered or unexported fields
}
func NewLdapsClient ¶
func NewLdapsClient(config LdapConfig) (*LdapsClient, error)
func (*LdapsClient) CheckHealth ¶ added in v0.1.0
func (l *LdapsClient) CheckHealth() []newhealth.Check
TODO: Implement
func (*LdapsClient) Connect ¶
func (l *LdapsClient) Connect() error
func (*LdapsClient) GetUser ¶
func (l *LdapsClient) GetUser(ctx context.Context, userId string) (*identitymodels.User, error)
Click to show internal directories.
Click to hide internal directories.