mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-06 10:20:43 +00:00
matrix-synapse: Fix LDAP login issue
Pass the `mail` attribute as an empty string instead of None (null in yaml) Fixes #1484 Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
ec68eb3d89
commit
668d4de77a
@ -146,7 +146,7 @@ def subcommand_post_install(_):
|
||||
'attributes': {
|
||||
'uid': 'uid',
|
||||
'name': 'uid',
|
||||
'mail': None
|
||||
'mail': ''
|
||||
}
|
||||
}
|
||||
config['password_providers'][0]['config'] = ldap_config
|
||||
|
||||
@ -26,13 +26,13 @@ from django.urls import reverse_lazy
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from ruamel.yaml.util import load_yaml_guess_indent
|
||||
|
||||
from plinth import service as service_module
|
||||
from plinth import action_utils, actions, frontpage
|
||||
from plinth import service as service_module
|
||||
from plinth.menu import main_menu
|
||||
|
||||
from .manifest import backup, clients
|
||||
|
||||
version = 4
|
||||
version = 5
|
||||
|
||||
managed_services = ['matrix-synapse']
|
||||
|
||||
@ -164,5 +164,6 @@ def get_public_registration_status():
|
||||
|
||||
def has_valid_certificate():
|
||||
"""Return whether the configured domain name has a valid certificate."""
|
||||
status = actions.superuser_run('matrixsynapse', ['letsencrypt', 'get-status'])
|
||||
status = actions.superuser_run('matrixsynapse',
|
||||
['letsencrypt', 'get-status'])
|
||||
return status.startswith('valid')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user