Patches for check-ldap enhance for ldaps/StartTLS [sf#1028118] [#270]