mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-11-02 23:25:45 +00:00
feat: add ldap support
This commit is contained in:
@@ -36,6 +36,10 @@ type Config struct {
|
||||
LoginMaxRetries int `mapstructure:"login-max-retries"`
|
||||
FogotPasswordMessage string `mapstructure:"forgot-password-message" validate:"required"`
|
||||
BackgroundImage string `mapstructure:"background-image" validate:"required"`
|
||||
LdapAddress string `mapstructure:"ldap-address"`
|
||||
LdapBindUser string `mapstructure:"ldap-bind-user"`
|
||||
LdapBindPassword string `mapstructure:"ldap-bind-password"`
|
||||
LdapBaseDN string `mapstructure:"ldap-base-dn"`
|
||||
}
|
||||
|
||||
// Server configuration
|
||||
@@ -122,3 +126,11 @@ type Labels struct {
|
||||
OAuth OAuthLabels
|
||||
IP IPLabels
|
||||
}
|
||||
|
||||
// Ldap config is a struct that contains the configuration for the LDAP service
|
||||
type LdapConfig struct {
|
||||
Address string
|
||||
BindUser string
|
||||
BindPassword string
|
||||
BaseDN string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user