Patches for check-ldap enhance for ldaps/StartTLS [sf#1028033] [#345]