core: add support for ldap V3 TLS