Added ability to support multiple URI entries for failover purpose.

- Added support for multiple URI entries for connection failover in case
  an LDAP server doesn't respond.
- Added tls_cacertfile as cafile when connecting with TLS.