[Pkg-matrix-maintainers] Bug#917558: matrix-synapse-ldap3 installs a python2.7 module (not a py3 one)
Vincent Ladeuil
v.ladeuil+freedombox at free.fr
Fri Dec 28 17:03:52 GMT 2018
Package: matrix-synapse
Version: 0.34.0-2
Severity: normal
Dear Maintainer,
I'm a freedombox user using a matrix-synapse server.
The freedombox setup relies on ldap for user credentials.
Upgrading from 0.33.9-2 to 0.34.0-2 broke my setup as the
ldap_auth_provider module wasn't available anymore (so the server
crashed at startup).
I worked around it by doing:
apt-get install python3-ldap3
apt-get install matrix-synapse-ldap3
cp /usr/lib/python2.7/dist-packages/ldap_auth_provider.py /usr/lib/python3/dist-packages/
This sounds like a fallout of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897222
Thanks in advance,
Vincent
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: armhf (armv7l)
Kernel: Linux 4.9.124-imx6-sr (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages matrix-synapse depends on:
ii adduser 3.118
ii debconf [debconf-2.0] 1.5.69
ii libjs-jquery 3.2.1-1
ii lsb-base 10.2018112800
ii python3 3.7.1-3
ii python3-attr 18.2.0-1
ii python3-bcrypt 3.1.5-1
ii python3-bleach 2.1.3-1
ii python3-canonicaljson 1.1.4-1
ii python3-daemonize 2.4.7-2
ii python3-frozendict 1.2-1
ii python3-jinja2 2.10-1
ii python3-jsonschema 2.6.0-4
ii python3-msgpack 0.5.6-1+b1
ii python3-nacl 1.3.0-2
ii python3-netaddr 0.7.19-1
ii python3-openssl 18.0.0-1
ii python3-phonenumbers 8.9.10-1
ii python3-pil 5.3.0-1
ii python3-prometheus-client 0.3.0-1
ii python3-psutil 5.4.8-1
ii python3-psycopg2 2.7.6.1-3
ii python3-pyasn1 0.4.2-3
ii python3-pyasn1-modules 0.2.1-0.2
ii python3-pymacaroons 0.13.0-1
ii python3-pysaml2 4.5.0-4
ii python3-service-identity 16.0.0-2
ii python3-signedjson 1.0.0+git20151019-1
ii python3-six 1.12.0-1
ii python3-sortedcontainers 2.0.4-1
ii python3-systemd 234-2+b1
ii python3-treq 18.6.0-0.1
ii python3-twisted 18.9.0-3
ii python3-unpaddedbase64 1.1.0-3
ii python3-yaml 3.13-1
Versions of packages matrix-synapse recommends:
ii python3-lxml 4.2.5-1
Versions of packages matrix-synapse suggests:
ii python3-bleach 2.1.3-1
ii python3-jinja2 2.10-1
-- Configuration Files:
/etc/matrix-synapse/homeserver.yaml changed:
tls_certificate_path: "/etc/matrix-synapse/homeserver.tls.crt"
tls_private_key_path: "/etc/matrix-synapse/homeserver.tls.key"
tls_dh_params_path: "/etc/matrix-synapse/homeserver.tls.dh"
no_tls: False
tls_fingerprints: []
pid_file: "/var/run/matrix-synapse.pid"
web_client: False
soft_file_limit: 0
listeners:
# Main HTTPS listener
# For when matrix traffic is sent directly to synapse.
-
# The port to listen for HTTPS requests on.
port: 8448
# Local addresses to listen on.
# On Linux and Mac OS, `::` will listen on all IPv4 and IPv6
# addresses by default. For most other OSes, this will only listen
# on IPv6.
bind_addresses:
- '::1'
- '127.0.0.1'
# - '::'
# - '0.0.0.0'
# This is a 'http' listener, allows us to specify 'resources'.
type: http
tls: true
# Use the X-Forwarded-For (XFF) header as the client IP and not the
# actual client IP.
x_forwarded: false
# List of HTTP resources to serve on this listener.
resources:
-
# List of resources to host on this listener.
names:
- client # The client-server APIs, both v1 and v2
- webclient # The bundled webclient.
# Should synapse compress HTTP responses to clients that support it?
# This should be disabled if running synapse behind a load balancer
# that can do automatic compression.
compress: true
- names: [federation] # Federation APIs
compress: false
# optional list of additional endpoints which can be loaded via
# dynamic modules
# additional_resources:
# "/_matrix/my/custom/endpoint":
# module: my_module.CustomRequestHandler
# config: {}
# Unsecure HTTP listener,
# For when matrix traffic passes through loadbalancer that unwraps TLS.
- port: 8008
tls: false
bind_addresses:
- '::1'
- '127.0.0.1'
# - '::'
# - '0.0.0.0'
type: http
x_forwarded: false
resources:
- names: [client, webclient]
compress: true
- names: [federation]
compress: false
# Turn on the twisted ssh manhole service on localhost on the given
# port.
# - port: 9000
# bind_addresses:
# - '::1'
# - '127.0.0.1'
# type: manhole
database:
# The database engine name
name: "sqlite3"
# Arguments to pass to the engine
args:
# Path to the database
database: "/var/lib/matrix-synapse/homeserver.db"
event_cache_size: "10K"
log_config: "/etc/matrix-synapse/log.yaml"
rc_messages_per_second: 0.2
rc_message_burst_count: 10.0
federation_rc_window_size: 1000
federation_rc_sleep_limit: 10
federation_rc_sleep_delay: 500
federation_rc_reject_limit: 50
federation_rc_concurrent: 3
media_store_path: "/var/lib/matrix-synapse/media"
uploads_path: "/var/lib/matrix-synapse/uploads"
max_upload_size: "100M"
max_image_pixels: "32M"
dynamic_thumbnails: false
thumbnail_sizes:
- width: 32
height: 32
method: crop
- width: 96
height: 96
method: crop
- width: 320
height: 240
method: scale
- width: 640
height: 480
method: scale
- width: 800
height: 600
method: scale
url_preview_enabled: False
max_spider_size: "10M"
recaptcha_public_key: "YOUR_PUBLIC_KEY"
recaptcha_private_key: "YOUR_PRIVATE_KEY"
enable_registration_captcha: False
recaptcha_siteverify_api: "https://www.google.com/recaptcha/api/siteverify"
turn_uris: []
turn_shared_secret: "YOUR_SHARED_SECRET"
turn_user_lifetime: "1h"
turn_allow_guests: False
enable_registration: False
bcrypt_rounds: 12
allow_guest_access: False
trusted_third_party_id_servers:
- matrix.org
- vector.im
- riot.im
enable_metrics: False
room_invite_state_types:
- "m.room.join_rules"
- "m.room.canonical_alias"
- "m.room.avatar"
- "m.room.name"
app_service_config_files: []
expire_access_token: False
signing_key_path: "/etc/matrix-synapse/homeserver.signing.key"
old_signing_keys: {}
key_refresh_interval: "1d" # 1 Day.
perspectives:
servers:
"matrix.org":
verify_keys:
"ed25519:auto":
key: "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"
password_config:
enabled: true
# Uncomment and change to a secret random string for extra security.
# DO NOT CHANGE THIS AFTER INITIAL SETUP!
#pepper: ""
password_providers:
- config:
attributes: {mail: null, name: uid, uid: uid}
base: ou=users,dc=thisbox
enabled: true
start_tls: false
uri: ldap://localhost:389
module: ldap_auth_provider.LdapAuthProvider
enable_group_creation: false
-- debconf information:
* matrix-synapse/server-name: cub1.ladeuil.net
* matrix-synapse/report-stats: true
More information about the Pkg-matrix-maintainers
mailing list