Documentation
¶
Index ¶
- func NewDriver(ctx context.Context, signupDisabled bool, cfg Config) (sdk.AuthDriver, error)
- type AuthDriver
- func (d AuthDriver) CheckSigninRequest(req sdk.AuthConsumerSigninRequest) error
- func (d AuthDriver) GetManifest() sdk.AuthDriverManifest
- func (d AuthDriver) GetSessionDuration() time.Duration
- func (d AuthDriver) GetUserInfo(ctx context.Context, req sdk.AuthConsumerSigninRequest) (sdk.AuthDriverUserInfo, error)
- type Config
- type Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthDriver ¶
type AuthDriver struct {
// contains filtered or unexported fields
}
func (AuthDriver) CheckSigninRequest ¶
func (d AuthDriver) CheckSigninRequest(req sdk.AuthConsumerSigninRequest) error
func (AuthDriver) GetManifest ¶
func (d AuthDriver) GetManifest() sdk.AuthDriverManifest
func (AuthDriver) GetSessionDuration ¶
func (d AuthDriver) GetSessionDuration() time.Duration
func (AuthDriver) GetUserInfo ¶
func (d AuthDriver) GetUserInfo(ctx context.Context, req sdk.AuthConsumerSigninRequest) (sdk.AuthDriverUserInfo, error)
type Config ¶
type Config struct {
Host string // 192.168.1.32
Port int // 636
SSL bool // true
RootDN string // dc=ejnserver,dc=fr
UserSearchBase string // ou=people
UserSearch string // uid={{.search}}
UserFullname string // {{.givenName}} {{.sn}}
ManagerDN string // cn=admin,dc=ejnserver,dc=fr
ManagerPassword string // SECRET_PASSWORD_MANAGER
}
Config handles all config to connect to the LDAP.
Click to show internal directories.
Click to hide internal directories.