LemonLDAP::NG uses Safe jail to evaluate all expressions:
More information about Safe on CPAN
Safe can be very annoying when using extended functions or custom functions. In this case, you might want to disable it.
To do this, either set useSafeJail to 0 in lemonldap-ng.ini, or comment the option in lemonldap-ng.ini and go into Manager > General Parameters > Advanced Parameters > Security > Use Safe Jail and disable it.
Perl comparaisons are done by using eq
for strings or ==
for integers.
To avoid an unwanted assignment like $authLevel = 5
(BAD EXPRESSION!),
you can enable Avoid assignment in expressions
option.
To do this, go into Manager > General Parameters > Advanced Parameters > Security > Avoid assignment in expressions and enable it.
DISABLE by default.