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