Added support for secure ldap connections