|
@@ -303,7 +303,7 @@ func (t *ThrottleConfig) UnmarshalYAML(unmarshal func(interface{}) error) (err e
|
303
|
303
|
type AccountConfig struct {
|
304
|
304
|
Registration AccountRegistrationConfig
|
305
|
305
|
AuthenticationEnabled bool `yaml:"authentication-enabled"`
|
306
|
|
- AdvertiseSCRAM bool `yaml:"advertise-scram"` // undocumented, see #1782
|
|
306
|
+ AdvertiseSCRAM bool `yaml:"advertise-scram"`
|
307
|
307
|
RequireSasl struct {
|
308
|
308
|
Enabled bool
|
309
|
309
|
Exempted []string
|
|
@@ -1390,7 +1390,6 @@ func LoadConfig(filename string) (config *Config, err error) {
|
1390
|
1390
|
}
|
1391
|
1391
|
|
1392
|
1392
|
saslCapValue := "PLAIN,EXTERNAL,SCRAM-SHA-256"
|
1393
|
|
- // TODO(#1782) clean this up:
|
1394
|
1393
|
if !config.Accounts.AdvertiseSCRAM {
|
1395
|
1394
|
saslCapValue = "PLAIN,EXTERNAL"
|
1396
|
1395
|
}
|