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

View File

@ -341,7 +341,7 @@ Backend Shareable Comment
Selected by default during installation.
:doc:`YAML<yamlconfbackend>` |new| Same as :doc:`File<fileconfbackend>` but in YAML format
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:`MongoDB<mongodbconfbackend>`
:doc:`SOAP<soapconfbackend>` |deprecated| ✔ Proxy backend to be used in conjunction with another