Patches for check_ldap segfault fix and syntax clarification [sf#663051] [#179]