Fix missing endif
diff --git a/keystone/files/keystone.domain.conf b/keystone/files/keystone.domain.conf
index a433b66..11ce373 100644
--- a/keystone/files/keystone.domain.conf
+++ b/keystone/files/keystone.domain.conf
@@ -2,6 +2,7 @@
 {%- set domain = server.domain.get(domain_name) %}
 
 {%- if domain.get("backend", "sql") == "ldap" %}
+
 [ldap]
 url = {{ domain.ldap.url }}
 user = uid={{ domain.ldap.get("uid", "keystone") }},cn=users,cn=accounts,{{ domain.ldap.suffix }}
@@ -61,6 +62,8 @@
 
 {%- endif %}
 
+{%- endif %}
+
 [identity]
 {%- if domain.get("backend", "sql") == "ldap" %}
 driver = keystone.identity.backends.ldap.Identity