summary refs log tree commit diff
path: root/synapse/config/password.py
diff options
context:
space:
mode:
authorDaniel Hoffend <dh@dotlan.net>2019-06-27 19:37:29 +0200
committerRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-06-27 18:37:29 +0100
commit9646a593ac555e7b68c6133c29a9f5bac83d1c2f (patch)
tree5713d4de9a618466aba4b6a0eeafeb926cc3a20c /synapse/config/password.py
parentInclude systemd-python in Debian package to allow logging to journal (#5261) (diff)
downloadsynapse-9646a593ac555e7b68c6133c29a9f5bac83d1c2f.tar.xz
Added possibilty to disable local password authentication (#5092)
Signed-off-by: Daniel Hoffend <dh@dotlan.net>

Diffstat (limited to 'synapse/config/password.py')
-rw-r--r--synapse/config/password.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/config/password.py b/synapse/config/password.py

index 598f84fc0c..d5b5953f2f 100644 --- a/synapse/config/password.py +++ b/synapse/config/password.py
@@ -26,6 +26,7 @@ class PasswordConfig(Config): password_config = {} self.password_enabled = password_config.get("enabled", True) + self.password_localdb_enabled = password_config.get("localdb_enabled", True) self.password_pepper = password_config.get("pepper", "") def generate_config_section(self, config_dir_path, server_name, **kwargs): @@ -35,6 +36,12 @@ class PasswordConfig(Config): # #enabled: false + # Uncomment to disable authentication against the local password + # database. This is ignored if `enabled` is false, and is only useful + # if you have other password_providers. + # + #localdb_enabled: false + # Uncomment and change to a secret random string for extra security. # DO NOT CHANGE THIS AFTER INITIAL SETUP! #