Implement LDAP Certificate (#15361)
* Implement LDAP Certificate * add diagnostics and translations * update from code review * pass pointer to update pict function * pass object to first function * remove debug log messages * update test to add localmode test * update lint errors Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6fd7cb2a80
Коммит
eba38625eb
@@ -1943,9 +1943,11 @@ type LdapSettings struct {
|
||||
SyncIntervalMinutes *int `access:"authentication"`
|
||||
|
||||
// Advanced
|
||||
SkipCertificateVerification *bool `access:"authentication"`
|
||||
QueryTimeout *int `access:"authentication"`
|
||||
MaxPageSize *int `access:"authentication"`
|
||||
SkipCertificateVerification *bool `access:"authentication"`
|
||||
PublicCertificateFile *string `access:"authentication"`
|
||||
PrivateKeyFile *string `access:"authentication"`
|
||||
QueryTimeout *int `access:"authentication"`
|
||||
MaxPageSize *int `access:"authentication"`
|
||||
|
||||
// Customization
|
||||
LoginFieldName *string `access:"authentication"`
|
||||
@@ -1983,6 +1985,14 @@ func (s *LdapSettings) SetDefaults() {
|
||||
s.ConnectionSecurity = NewString("")
|
||||
}
|
||||
|
||||
if s.PublicCertificateFile == nil {
|
||||
s.PublicCertificateFile = NewString("")
|
||||
}
|
||||
|
||||
if s.PrivateKeyFile == nil {
|
||||
s.PrivateKeyFile = NewString("")
|
||||
}
|
||||
|
||||
if s.BaseDN == nil {
|
||||
s.BaseDN = NewString("")
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user