fix: Fix/ldap tls (#162)

* optimize and fix tls of LDAP

* fix
This commit is contained in:
Tao Chen
2025-03-02 22:59:01 +08:00
committed by GitHub
parent 403d9c2233
commit 5db3c8bf0b
4 changed files with 34 additions and 11 deletions

View File

@@ -26,7 +26,7 @@ type LdapUser struct {
type Ldap struct {
Enable bool `mapstructure:"enable"`
Url string `mapstructure:"url"`
TLS bool `mapstructure:"tls"`
TlsCaFile string `mapstructure:"tls-ca-file"`
TlsVerify bool `mapstructure:"tls-verify"`
BaseDn string `mapstructure:"base-dn"`
BindDn string `mapstructure:"bind-dn"`