| 1 |
LDAP configuration backend |
| 2 |
========================== |
| 3 |
|
| 4 |
Presentation |
| 5 |
------------ |
| 6 |
|
| 7 |
You can choose to store LemonLDAP::NG configuration in an LDAP |
| 8 |
directory. |
| 9 |
|
| 10 |
|image0| |
| 11 |
|
| 12 |
Advantages: |
| 13 |
|
| 14 |
- Easy to share between servers with remote LDAP access |
| 15 |
- Easy to duplicate with LDAP synchronization services (like SyncRepl |
| 16 |
in OpenLDAP) |
| 17 |
- Security with SSL/TLS |
| 18 |
- Access control possible by creating one user for Manager (write) and |
| 19 |
another for portal and handlers (read) |
| 20 |
- Easy import/export through LDIF files |
| 21 |
|
| 22 |
The configuration will be store under a specific branch, for example |
| 23 |
``ou=conf,ou=applications,dc=example,dc=com``. |
| 24 |
|
| 25 |
Each configuration will be represented as an entry, which structural |
| 26 |
objectClass is by default ``applicationProcess``. The configuration name |
| 27 |
is the same that files, so lmConf-1, lmConf-2, etc. This name is used in |
| 28 |
entry DN, for example |
| 29 |
``cn=lmConf-1,ou=conf,ou=applications,dc=example,dc=com``. |
| 30 |
|
| 31 |
Then each parameter is one value of the attribute ``description``, |
| 32 |
prefixed by its key. For example ``{ldapPort}389``. |
| 33 |
|
| 34 |
The LDIF view of such entry can be: |
| 35 |
|
| 36 |
:: |
| 37 |
|
| 38 |
dn: cn=lmConf-1,ou=conf,ou=applications,dc=example,dc=com |
| 39 |
objectClass: top |
| 40 |
objectClass: applicationProcess |
| 41 |
cn: lmConf-1 |
| 42 |
description: {globalStorage}'Apache::Session::File' |
| 43 |
description: {cookieName}'lemonldap' |
| 44 |
description: {whatToTrace}'$uid' |
| 45 |
... |
| 46 |
|
| 47 |
Configuration |
| 48 |
------------- |
| 49 |
|
| 50 |
LDAP server |
| 51 |
~~~~~~~~~~~ |
| 52 |
|
| 53 |
Configuration objects use standard object class: ``applicationProcess``. |
| 54 |
This objectClass allow attributes ``cn`` and ``description``. If your |
| 55 |
LDAP server do not manage this objectClass, configure other objectclass |
| 56 |
and attributes (see below). |
| 57 |
|
| 58 |
We advice to create a specific LDAP account with write access on |
| 59 |
configuration branch. |
| 60 |
|
| 61 |
Next create the configuration branch where you want. Just remember its |
| 62 |
DN for LemonLDAP::NG configuration. |
| 63 |
|
| 64 |
LemonLDAP::NG |
| 65 |
~~~~~~~~~~~~~ |
| 66 |
|
| 67 |
Configure LDAP configuration backend in ``lemonldap-ng.ini``, section |
| 68 |
``[configuration]``: |
| 69 |
|
| 70 |
.. code-block:: ini |
| 71 |
|
| 72 |
type = LDAP |
| 73 |
ldapServer = ldap://localhost |
| 74 |
ldapConfBase = ou=conf,ou=applications,dc=example,dc=com |
| 75 |
ldapBindDN = cn=manager,dc=example,dc=com |
| 76 |
ldapBindPassword = secret |
| 77 |
ldapObjectClass = applicationProcess |
| 78 |
ldapAttributeId = cn |
| 79 |
ldapAttributeContent = description |
| 80 |
|
| 81 |
Parameters: |
| 82 |
|
| 83 |
- **ldapServer**: LDAP URI of the server |
| 84 |
- **ldapConfBase**: DN of configuration branch |
| 85 |
- **ldapBindDN**: DN used to bind LDAP |
| 86 |
- **ldapBindPassword**: password used to bind LDAP |
| 87 |
- **ldapObjectClass**: structural objectclass of configuration entry |
| 88 |
(optional) |
| 89 |
- **ldapAttributeId**: RDN attribute of configuration entry (optional) |
| 90 |
- **ldapAttributeContent**: attribute used to store configuration |
| 91 |
values, must be multivalued (optional) |
| 92 |
- **ldapVerify**: When using a LDAPS or TLS server, whether or not to validate the server certificate. Possible values: ``require``, ``optional`` or ``none``. |
| 93 |
- **ldapCAFile**: This allows you to override the default system-wide |
| 94 |
certificate authorities by giving a single file containing the CA used by the |
| 95 |
LDAP server. |
| 96 |
- **ldapCAPath**: This allows you to override the default system-wide |
| 97 |
certificate authorities by giving the path of a directory containing your |
| 98 |
trusted certificates. |
| 99 |
|
| 100 |
|
| 101 |
.. |image0| image:: /documentation/configuration-ldap.png |
| 102 |
:class: align-center |
| 103 |
|