Commit b20b161c authored by Yadd's avatar Yadd
Browse files

Prefer CDBI

parent 4a61606e
Pipeline #14371 passed with stage
in 11 minutes and 9 seconds
......@@ -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,27 +50,27 @@ Use database to create table:
use lemonldap-ng
RDBI
CDBI
^^^^
.. code-block:: sql
CREATE TABLE lmConfig (
cfgNum int(11) NOT NULL,
field varchar(255) NOT NULL DEFAULT '',
value longtext,
PRIMARY KEY (cfgNum,field)
);
cfgNum int not null primary key,
data longtext
);
CDBI
RDBI
^^^^
.. code-block:: sql
CREATE TABLE lmConfig (
cfgNum int not null primary key,
data longtext
);
cfgNum int(11) NOT NULL,
field varchar(255) NOT NULL DEFAULT '',
value longtext,
PRIMARY KEY (cfgNum,field)
);
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
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment