Debian Codegraph @

doc/sources/admin/safejail.rst

raw
1 Safe jail
2 =========
3
4 Presentation
5 ------------
6
7 LemonLDAP::NG uses Safe jail to evaluate all expressions:
8
9 - Access rules
10 - Headers
11 - Form replay parameters
12 - Macros
13 - Groups
14 - Conditions:
15
16 - Menu modules display
17 - Multi modules display
18 - IssuerDB use
19 - Session opening
20
21 More information about Safe on
22 `CPAN <http://search.cpan.org/search?query=Safe&mode=module>`__
23
24 Disable Safe jail
25 -----------------
26
27 Safe can be very annoying when using
28 :doc:`extended functions<extendedfunctions>` or
29 :doc:`custom functions<customfunctions>`. In this case, you might want
30 to disable it.
31
32 To do this, either set useSafeJail to 0 in lemonldap-ng.ini, or comment
33 the option in lemonldap-ng.ini and go into Manager > General Parameters >
34 Advanced Parameters > Security > Use Safe Jail and disable it.
35
36
37 Assignment test
38 ===============
39
40 Presentation
41 ------------
42
43 Perl comparaisons are done by using ``eq`` for strings or ``==`` for integers.
44 To avoid an unwanted assignment like ``$authLevel = 5`` (BAD EXPRESSION!),
45 you can enable ``Avoid assignment in expressions`` option.
46
47 To do this, go into Manager > General Parameters > Advanced Parameters >
48 Security > Avoid assignment in expressions and enable it.
49
50 DISABLE by default.