Prefer CDBI

This commit is contained in:
Yadd 2021-06-29 19:24:42 +02:00
parent 4a61606ee8
commit b20b161c46
2 changed files with 26 additions and 26 deletions

View File

@ -4,7 +4,7 @@ SQL configuration backends
There is 2 types of SQL configuration backends for LemonLDAP::NG: There is 2 types of SQL configuration backends for LemonLDAP::NG:
- **CDBI**: very simple storage (recommended) - **CDBI**: very simple storage (recommended)
- **RDBI**: triple store storage - **RDBI**: triple store storage (not recommended)
.. tip:: .. tip::
@ -50,6 +50,16 @@ Use database to create table:
use lemonldap-ng use lemonldap-ng
CDBI
^^^^
.. code-block:: sql
CREATE TABLE lmConfig (
cfgNum int not null primary key,
data longtext
);
RDBI RDBI
^^^^ ^^^^
@ -62,16 +72,6 @@ RDBI
PRIMARY KEY (cfgNum,field) PRIMARY KEY (cfgNum,field)
); );
CDBI
^^^^
.. code-block:: sql
CREATE TABLE lmConfig (
cfgNum int not null primary key,
data longtext
);
Grant access Grant access
~~~~~~~~~~~~ ~~~~~~~~~~~~
@ -107,7 +107,7 @@ file (section configuration):
.. code-block:: ini .. code-block:: ini
[configuration] [configuration]
type = RDBI type = CDBI
dbiChain = DBI:mysql:database=lemonldap-ng;host=1.2.3.4 dbiChain = DBI:mysql:database=lemonldap-ng;host=1.2.3.4
dbiUser = lemonldaprw dbiUser = lemonldaprw
dbiPassword = mypassword dbiPassword = mypassword
@ -155,6 +155,18 @@ Use database to create table:
.. _rdbi-1: .. _rdbi-1:
CDBI
^^^^
.. code-block:: sql
CREATE TABLE lmConfig (
cfgnum integer not null primary key,
data text
);
.. _connection-settings-1:
RDBI RDBI
^^^^ ^^^^
@ -169,18 +181,6 @@ RDBI
.. _cdbi-1: .. _cdbi-1:
CDBI
^^^^
.. code-block:: sql
CREATE TABLE lmConfig (
cfgnum integer not null primary key,
data text
);
.. _connection-settings-1:
Connection settings Connection settings
------------------- -------------------
@ -190,7 +190,7 @@ file (section configuration):
.. code-block:: ini .. code-block:: ini
[configuration] [configuration]
type = RDBI type = CDBI
dbiChain = DBI:Pg:database=lemonldap-ng;host=1.2.3.4 dbiChain = DBI:Pg:database=lemonldap-ng;host=1.2.3.4
dbiUser = lemonldaprw dbiUser = lemonldaprw
dbiPassword = mypassword dbiPassword = mypassword

View File

@ -341,7 +341,7 @@ Backend Shareable Comment
Selected by default during installation. Selected by default during installation.
:doc:`YAML<yamlconfbackend>` |new| Same as :doc:`File<fileconfbackend>` but in YAML format :doc:`YAML<yamlconfbackend>` |new| Same as :doc:`File<fileconfbackend>` but in YAML format
instead of JSON instead of JSON
:doc:`SQL (RDBI/CDBI)<sqlconfbackend>` ✔ **Recommended for large-scale systems**. Prefer CDBI. :doc:`SQL (CDBI/RDBI)<sqlconfbackend>` ✔ **Recommended for large-scale systems**. Prefer CDBI.
:doc:`LDAP<ldapconfbackend>` :doc:`LDAP<ldapconfbackend>`
:doc:`MongoDB<mongodbconfbackend>` :doc:`MongoDB<mongodbconfbackend>`
:doc:`SOAP<soapconfbackend>` |deprecated| ✔ Proxy backend to be used in conjunction with another :doc:`SOAP<soapconfbackend>` |deprecated| ✔ Proxy backend to be used in conjunction with another