lemonldap-ng/doc/sources/admin/soapconfbackend.rst

76 lines
1.8 KiB
ReStructuredText
Raw Normal View History

2020-05-14 23:29:41 +02:00
SOAP configuration backend (deprecated)
=======================================
You can share your configuration over the network using SOAP proxy
system.
2020-05-18 09:56:39 +02:00
.. tip::
2020-05-14 23:29:41 +02:00
Note that SOAP is not a real configuration backend, but just a
proxy system to access to your configuration over the network
2020-05-21 15:13:24 +02:00
.. attention::
2020-05-14 23:29:41 +02:00
SOAP has been deprecated. Prefer to use
2020-05-18 09:56:39 +02:00
:doc:`REST configuration backend<restconfbackend>`\
2020-05-14 23:29:41 +02:00
Configuration
-------------
First, configure your real backend
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- On your main server, configure a
:doc:`File<fileconfbackend>`,
:doc:`SQL<sqlconfbackend>` or
:doc:`LDAP<ldapconfbackend>` backend
- Set SOAP parameter to true in the configuration using the manager:
the portal will become a SOAP server
- Configure your web server to allow remote access. Remote SOAP access
is disabled by default. You must change it as follow :
2020-05-18 09:56:39 +02:00
- in ``portal-apache2.conf`` :
2020-05-14 23:29:41 +02:00
2020-05-21 15:13:24 +02:00
.. code-block:: apache
2020-05-14 23:29:41 +02:00
# SOAP functions for configuration access (disabled by default)
<Location /index.fcgi/config>
Require ip 192.168.2.0/24
</Location>
2020-05-18 09:56:39 +02:00
- in ``portal-nginx.conf`` :
2020-05-14 23:29:41 +02:00
2020-05-21 15:13:24 +02:00
.. code-block:: nginx
2020-05-14 23:29:41 +02:00
# SOAP functions for configuration access (disabled by default)
location /index.psgi/config {
allow 192.168.2.0/24;
}
2020-05-18 09:56:39 +02:00
.. _soapconfbackend-next-configure-soap-for-your-remote-servers:
2020-05-14 23:29:41 +02:00
Next, configure SOAP for your remote servers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Change configuration in lemonldap-ng.ini :
2020-05-21 15:13:24 +02:00
.. code-block:: ini
2020-05-14 23:29:41 +02:00
type = SOAP
; Apache
proxy = https://auth.example.com/index.fcgi/config
; Nginx
proxy = https://auth.example.com/index.pcgi/config
You can also add some other parameters
2020-05-21 15:13:24 +02:00
.. code-block:: ini
2020-05-14 23:29:41 +02:00
User = lemonldap
Password = mypassword
# LWP::UserAgent parameters
proxyOptions = { timeout => 5 }