# Backend de configuration SOAP

You can share your configuration over the network using SOAP proxy system.

Note that SOAP is not a real configuration backend, but just a proxy system to access to your configuration over the network

## Configuration

### Premièrement, configurer le backend réel

- Sur le serveur principal, configurer un backend File, SQL or LDAP
- Set SOAP parameter to true in the configuration using the manager: the portal will become a SOAP server
- Configure Apache to allow remote access: in `portal-apache2.conf`, remote SOAP access is disabled by default. Le Changer :

    # SOAP functions for configuration access (disabled by default)
    <Location /index.pl/config>
        Order deny,allow
        Deny from all
        Allow from 192.168.2.0/24
    </Location>

### Ensuite, configurer SOAP pour les serveurs distants

Changer la configuration dans lemonldap-ng.ini :

    type         = SOAP
    proxy        = https://auth.example.com/index.pl/config

On peut également ajouter quelques autres paramètres

    User         = lemonldap
    Password     = mypassword
    # LWP::UserAgent parameters
    proxyOptions = { timeout => 5 }