Updated for external ldap configs
diff --git a/templates/silent-install.conf.j2 b/templates/silent-install.conf.j2
index 02e79a6..109d080 100644
--- a/templates/silent-install.conf.j2
+++ b/templates/silent-install.conf.j2
@@ -18,7 +18,8 @@
 {% endif %}
 {% endif %}
 APIGEE_LDAPPW='{{ opdk_ldap_pass }}'
-{% elif %}
+{% endif %}
+{% if use_opdk_ldap_remote_host is defined and use_opdk_ldap_remote_host | trim | lower == 'y' %}
 LDAP_HOST={{ opdk_ldap_host }}
 LDAP_PORT={{ opdk_ldap_port }}
 {% endif %}