Added switch for TLS for LDAP backend and updated dist config