Debian Codegraph @

doc/sources/admin/passwordstore.rst

raw
1 Store user password in session
2 ==============================
3
4 Presentation
5 ------------
6
7 Password is not a common attribute. Indeed, in most of the cases, it is
8 not stored in clear text in the backend (LDAP or database).
9
10 So to keep user password in session, you cannot just export the
11 password variable in session. To bypass this, LL::NG can remember what
12 password was given by user during authentication.
13
14 .. attention::
15
16 - As this may be a security hole, password store in session is not
17 activated by default
18 - This mechanism can only work with authentication backends using a
19 login/password form (:doc:`LDAP<authldap>`, :doc:`DBI<authdbi>`, ...)
20 so not with Kerberos for example
21 - This mechanism will not work with Persistent connections plugin, as
22 the password is not available if user is automatically connected
23 - Password can be encrypted in session, you need to enable this option,
24 as this is disabled by default
25
26
27 Configuration
28 -------------
29
30 Go in Manager, ``General Parameters`` » ``Sessions`` »
31 ``Store user password in session data`` and set to ``On``.
32
33 To encrypt value in session, go to ``General Parameters`` » ``Sessions`` »
34 ``Encrypt password in sessio`` and set to ``On``.
35
36 Usage
37 -----
38
39 User password is now available in ``$_password`` variable. For example,
40 to send it in an header:
41
42 ::
43
44 Auth-Password => $_password
45
46
47 .. tip::
48
49 For security reasons, the password is not shown in sessions
50 explorer.