Auth: Add root and client certificate value fields in LDAP config (#88746)

* add root and client certificate value fields for LDAP

* update error messages for connection error
This commit is contained in:
Mihai Doarna
2024-06-10 18:13:15 +03:00
committed by GitHub
parent 06c30ee165
commit 0f936e2939
8 changed files with 289 additions and 28 deletions
+10 -7
View File
@@ -33,13 +33,16 @@ type ServerConfig struct {
TLSCiphers []string `toml:"tls_ciphers"`
tlsCiphers []uint16 `toml:"-"`
RootCACert string `toml:"root_ca_cert"`
ClientCert string `toml:"client_cert"`
ClientKey string `toml:"client_key"`
BindDN string `toml:"bind_dn"`
BindPassword string `toml:"bind_password"`
Timeout int `toml:"timeout"`
Attr AttributeMap `toml:"attributes"`
RootCACert string `toml:"root_ca_cert"`
RootCACertValue []string
ClientCert string `toml:"client_cert"`
ClientCertValue string
ClientKey string `toml:"client_key"`
ClientKeyValue string
BindDN string `toml:"bind_dn"`
BindPassword string `toml:"bind_password"`
Timeout int `toml:"timeout"`
Attr AttributeMap `toml:"attributes"`
SearchFilter string `toml:"search_filter"`
SearchBaseDNs []string `toml:"search_base_dns"`