Manager not checking regex before saving
A user can save a conf with perl error in location Rules (with Safe activated)
Example: default => uid =~ /^surname/name
/
The conf is saved but handler is not working anymore.
LL::NG return an error: Bareword found where operator expected at (eval 331) line 1, near "/^surname/name" (Missing operator before name?) Not a CODE reference at /usr/share/perl5/Lemonldap/NG/Handler/Simple.pm line 637\n DBD::mysql::db selectrow_array failed: Lost connection to MySQL server during query at /etc/perl/Lemonldap/NG/Common/Conf/_DBI.pm line 48. DBD::mysql::db selectrow_array failed: Lost connection to MySQL server during query at /etc/perl/Lemonldap/NG/Common/Conf/_DBI.pm line 48.\n
Connection to mysql is lost but is still alive and the more error append the more connection are kept opened by server. As a result, load average is increasing and server is not responding correctly.
Maybe it's possible to implement a better control of values to prevent this kind of error.