2022-09-17 00:25:36 +08:00
# Setting up matrix-ldap-registration-proxy (optional)
The playbook can install and configure [matrix-ldap-registration-proxy ](https://gitlab.com/activism.international/matrix_ldap_registration_proxy ) for you.
This proxy handles Matrix registration requests and forwards them to LDAP.
2024-10-14 21:35:16 +08:00
**Note**: This does support the full Matrix specification for registrations. It only provide a very coarse
2022-09-17 00:25:36 +08:00
implementation of a basic password registration.
## Quickstart
Add the following configuration to your `inventory/host_vars/matrix.DOMAIN/vars.yml` file:
```yaml
matrix_ldap_registration_proxy_enabled: true
2022-09-17 01:25:00 +08:00
# LDAP credentials
matrix_ldap_registration_proxy_ldap_uri: < URI >
matrix_ldap_registration_proxy_ldap_base_dn: < DN >
matrix_ldap_registration_proxy_ldap_user: < USER >
matrix_ldap_registration_proxy_ldap_password: < password >
```
2022-09-30 00:00:14 +08:00
2022-10-02 14:27:49 +08:00
If you already use the [synapse external password provider via LDAP ](configuring-playbook-ldap-auth.md ) (that is, you have `matrix_synapse_ext_password_provider_ldap_enabled: true` and other options in your configuration)
2022-09-30 00:00:14 +08:00
you can use the following values as configuration:
```yaml
# Use the LDAP values specified for the synapse role to setup LDAP proxy
matrix_ldap_registration_proxy_ldap_uri: "{{ matrix_synapse_ext_password_provider_ldap_uri }}"
matrix_ldap_registration_proxy_ldap_base_dn: "{{ matrix_synapse_ext_password_provider_ldap_base }}"
matrix_ldap_registration_proxy_ldap_user: "{{ matrix_synapse_ext_password_provider_ldap_bind_dn }}"
matrix_ldap_registration_proxy_ldap_password: "{{ matrix_synapse_ext_password_provider_ldap_bind_password }}"
2024-01-09 17:51:15 +08:00
matrix_ldap_registration_proxy_systemd_wanted_services_list_custom:
- matrix-synapse.service
2022-09-30 00:00:14 +08:00
```
2024-10-13 02:03:46 +08:00
## Installing
After configuring the playbook, run the [installation ](installing.md ) command: `just install-all` or `just setup-all`