Debian Codegraph @

doc/sources/admin/soapconfbackend.rst

raw
1 SOAP configuration backend (deprecated)
2 =======================================
3
4 You can share your configuration over the network using SOAP proxy
5 system.
6
7
8 .. tip::
9
10 Note that SOAP is not a real configuration backend, but just a
11 proxy system to access to your configuration over the network
12
13
14 .. attention::
15
16 SOAP has been deprecated. Prefer to use
17 :doc:`REST configuration backend<restconfbackend>`\
18
19 Configuration
20 -------------
21
22 First, configure your real backend
23 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24
25 - On your main server, configure a
26 :doc:`File<fileconfbackend>`,
27 :doc:`SQL<sqlconfbackend>` or
28 :doc:`LDAP<ldapconfbackend>` backend
29 - Set SOAP parameter to true in the configuration using the manager:
30 the portal will become a SOAP server
31 - Configure your web server to allow remote access. Remote SOAP access
32 is disabled by default. You must change it as follow :
33
34 - in ``portal-apache2.conf`` :
35
36 .. code-block:: apache
37
38 # SOAP functions for configuration access (disabled by default)
39 <Location /index.fcgi/config>
40 Require ip 192.168.2.0/24
41 </Location>
42
43 - in ``portal-nginx.conf`` :
44
45 .. code-block:: nginx
46
47 # SOAP functions for configuration access (disabled by default)
48 location /index.psgi/config {
49 allow 192.168.2.0/24;
50 }
51
52 .. _soapconfbackend-next-configure-soap-for-your-remote-servers:
53
54 Next, configure SOAP for your remote servers
55 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56
57 Change configuration in lemonldap-ng.ini :
58
59 .. code-block:: ini
60
61 type = SOAP
62 ; Apache
63 proxy = https://auth.example.com/index.fcgi/config
64 ; Nginx
65 proxy = https://auth.example.com/index.pcgi/config
66
67 You can also add some other parameters
68
69 .. code-block:: ini
70
71 User = lemonldap
72 Password = mypassword
73 # LWP::UserAgent parameters
74 proxyOptions = { timeout => 5 }
75