Updated for external ldap configs
diff --git a/templates/silent-install.conf.j2 b/templates/silent-install.conf.j2
index 05bc860..02e79a6 100644
--- a/templates/silent-install.conf.j2
+++ b/templates/silent-install.conf.j2
@@ -3,8 +3,9 @@
 ADMIN_EMAIL={{ opdk_user_email }}
 APIGEE_ADMINPW='{{ opdk_user_pass }}'
 LICENSE_FILE={{ opdk_license_target_file_path }}
-USE_LDAP_REMOTE_HOST={{ opdk_ldap_remote_host }}
 
+USE_LDAP_REMOTE_HOST={{ use_opdk_ldap_remote_host }}
+{% if use_opdk_ldap_remote_host is defined and use_opdk_ldap_remote_host | trim == 'n' %}
 LDAP_TYPE='{{ opdk_ldap_type }}'
 {% if opdk_ldap_type == '2' %}
 {% if groups['dc-1-ldap'] is defined and groups['dc-2-ldap'] is defined and inventory_hostname in groups['dc-1-edge'] %}
@@ -17,6 +18,11 @@
 {% endif %}
 {% endif %}
 APIGEE_LDAPPW='{{ opdk_ldap_pass }}'
+{% elif %}
+LDAP_HOST={{ opdk_ldap_host }}
+LDAP_PORT={{ opdk_ldap_port }}
+{% endif %}
+
 
 ENABLE_AX={{ opdk_enable_ax }}
 MP_POD={{ opdk_mp_pod | default(default_mp_pod) }}