Debian Codegraph @

doc/sources/admin/ldapsessionbackend.rst

raw
1 LDAP session backend
2 ====================
3
4 An Apache session module was created by LL::NG team to store sessions in
5 an LDAP directory.
6
7
8 .. attention::
9
10 This module is not part of LL::NG distribution, and can
11 be found on CPAN:
12 `Apache::Session::LDAP <http://search.cpan.org/dist/Apache-Session-LDAP/>`__.
13
14
15 .. tip::
16
17 This module is also available on
18 `GitHub <https://github.com/coudot/apache-session-ldap>`__.
19
20 Sessions will be stored as LDAP entries, like this:
21
22 ::
23
24 dn: cn=6fb7c4a170a04668771f03b0a4747f46,ou=sessions,dc=example,dc=com
25 objectClass: applicationProcess
26 cn: 6fb7c4a170a04668771f03b0a4747f46
27 description: [Base64 serialized data]
28
29 Setup
30 -----
31
32 Go in the Manager and set the LDAP session module
33 (`Apache::Session::LDAP <http://search.cpan.org/dist/Apache-Session-LDAP/>`__)
34 in ``General parameters`` » ``Sessions`` » ``Session storage`` »
35 ``Apache::Session module`` and add the following parameters (case
36 sensitive):
37
38 ======================== ================================= ===============================
39 Required parameters
40 ------------------------------------------------------------------------------------------
41 Name Comment Example
42 ======================== ================================= ===============================
43 **ldapServer** URI of the server ldap://localhost
44 **ldapConfBase** DN of sessions branch ou=sessions,dc=example,dc=com
45 **ldapBindDN** Connection login cn=admin,dc=example,dc=dom
46 **ldapBindPassword** Connection password secret
47 ======================== ================================= ===============================
48
49 ======================== ================================= ===============================
50 Optional parameters
51 ------------------------------------------------------------------------------------------
52 Name Comment Default value
53 ======================== ================================= ===============================
54 **ldapObjectClass** Objectclass of the entry applicationProcess
55 **ldapAttributeId** Attribute storing session ID cn
56 **ldapAttributeContent** Attribute storing session content description
57 **ldapVerify** Perform certificate validation require (use none to disable)
58 **ldapCAFile** Path of CA file bundle (system CA bundle)
59 **ldapCAPath** Perform CA directory (system CA bundle)
60 ======================== ================================= ===============================
61
62 Security
63 --------
64
65 Restrict network access to the LDAP directory, and add specific ACL to
66 session branch.
67
68 You can also use different user/password for your servers by overriding
69 parameters ``globalStorage`` and ``globalStorageOptions`` in
70 lemonldap-ng.ini file.