Browse Source

Merge pull request #2032 from slingamn/scram.1

recommended default: advertise SCRAM
tags/v2.12.0-rc1
Shivaram Lingamneni 1 year ago
parent
commit
b2087977d0
No account linked to committer's email address
3 changed files with 9 additions and 2 deletions
  1. 4
    0
      default.yaml
  2. 1
    2
      irc/config.go
  3. 4
    0
      traditional.yaml

+ 4
- 0
default.yaml View File

@@ -450,6 +450,10 @@ accounts:
450 450
     # this is useful for compatibility with old clients that don't support SASL
451 451
     login-via-pass-command: true
452 452
 
453
+    # advertise the SCRAM-SHA-256 authentication method. set to false in case of
454
+    # compatibility issues with certain clients:
455
+    advertise-scram: true
456
+
453 457
     # require-sasl controls whether clients are required to have accounts
454 458
     # (and sign into them using SASL) to connect to the server
455 459
     require-sasl:

+ 1
- 2
irc/config.go View File

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

+ 4
- 0
traditional.yaml View File

@@ -423,6 +423,10 @@ accounts:
423 423
     # this is useful for compatibility with old clients that don't support SASL
424 424
     login-via-pass-command: false
425 425
 
426
+    # advertise the SCRAM-SHA-256 authentication method. set to false in case of
427
+    # compatibility issues with certain clients:
428
+    advertise-scram: true
429
+
426 430
     # require-sasl controls whether clients are required to have accounts
427 431
     # (and sign into them using SASL) to connect to the server
428 432
     require-sasl:

Loading…
Cancel
Save