Document limitation for huge number of values in LDAP fields
Gathered information:
- The crash comes from the call
{eval var=$attribute.input}
insimpleplugin_section.tpl
- In the case of this huge group, the string in this eval is huge
- A clean solution would be to avoid passing this string to eval and attributes to put HTML code instead of smarty code in there.
- The fact that it is smarty code is used for renderAcl
- It is also used for
html_options
smarty function- From what I see there is no other use
I was able to solve my issue by setting
; default value * 100
pcre.backtrack_limit=10000000
in php.ini
Here are a few solution ideas:
- ini_set pcre.backtrack_limit to a higher value when loading the app so that huge groups can be displayed
- find a way to send smaller templates to Smarty? probably not a trivial fix
- Catch the PHP exception from smarty and trigger some special processing when the group is too big (friendly error message, etc)