Debian Codegraph @

doc/sources/admin/changeconfbackend.rst

raw
1 How to change configuration backend
2 ===================================
3
4 LemonLDAP::NG provides a script to change configuration backend easily
5 keeping history. It is set in LemonLDAP::NG utilities directory
6 (``convertConfig``).
7
8 How it works
9 ------------
10
11 The ``convertConfig`` utility reads 2 LL::NG configuration files
12 (``lemonldap-ng.ini``):
13
14 - **Current**: to extract all configuration history
15 - **New**: to write all configuration history
16
17 Let's go
18 --------
19
20 - Prepare your new lemonldap-ng.ini file
21 - Configure your new backend (create SQL database,...)
22 - Launch the following command:
23
24 .. code-block:: shell
25
26 convertConfig --current=/etc/lemonldap-ng/lemonldap-ng.ini --new=/new/lemonldap-ng.ini
27
28 - Install the new lemonldap-ng.ini file at the place of the old file in all LL::NG servers
29 - Restart all your web servers
30
31 .. note::
32
33 Since LemonLDAP 2.0.9, you don't need the ``--current`` and ``--new`` options
34 when migrating from the default file-based backend. Simply run
35 `convertConfig` to migrate from the default configuration backend to the
36 currently configured backend.
37
38
39 See also
40 --------
41
42 Documentation is available for configuration backends :
43
44 - :doc:`SQL<sqlconfbackend>`
45 - :doc:`File<fileconfbackend>`
46 - :doc:`LDAP<ldapconfbackend>`
47 - :doc:`SOAP proxy mechanism<soapconfbackend>`