feat: add ldap support

This commit is contained in:
Stavros
2025-07-05 02:20:12 +03:00
parent 4524e3322c
commit 1e413e671f
9 changed files with 302 additions and 56 deletions

View File

@@ -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
}