validate_ldap_filter
extern bool_t validate_ldap_filter(const char *s, const char *end);
if (!validate_ldap_filter(s_begin, s_end))