@@ -9,14 +9,12 @@ database:
9
9
username: <%= uaa_role.name %>
10
10
password: "<%= uaa_role.password %> "
11
11
12
- <% if properties.uaa && properties.uaa.spring_profiles && properties.uaa.spring_profiles.eql?('ldap') && properties.uaa.ldap %>
13
- spring_profiles: <%= properties.uaa.spring_profiles %> ,<%= properties.uaadb.db_scheme%>
14
- <% elsif properties.uaa && properties.uaa.spring_profiles && properties.uaa.spring_profiles.include?('ldap') && properties.uaa.ldap %>
15
- spring_profiles: <%= properties.uaa.spring_profiles ? properties.uaa.spring_profiles : properties.uaadb.db_scheme %>
16
- <% elsif properties.login && properties.login.spring_profiles && properties.login.spring_profiles.include?('ldap') && properties.login.ldap %>
17
- spring_profiles: <%= properties.uaa.spring_profiles ? properties.uaa.spring_profiles : properties.uaadb.db_scheme %> ,ldap
12
+ <% if properties.uaa && properties.uaa.ldap && properties.uaa.ldap.profile_type %>
13
+ spring_profiles: <%= properties.uaadb.db_scheme %> ,ldap
14
+ <% elsif properties.login && properties.login.spring_profiles && properties.login.spring_profiles.include?('ldap') && properties.login.ldap && properties.login.ldap.profile_type %>
15
+ spring_profiles: <%= properties.uaadb.db_scheme %> ,ldap
18
16
<% else %>
19
- spring_profiles: <%= properties.uaa.spring_profiles ? properties.uaa.spring_profiles : properties. uaadb.db_scheme %>
17
+ spring_profiles: <%= properties.uaadb.db_scheme %>
20
18
<% end %>
21
19
22
20
logging:
@@ -122,7 +120,7 @@ require_https: <%= properties.uaa.require_https %>
122
120
<% if !properties.uaa.dump_requests.nil? %>
123
121
dump_requests: <%= properties.uaa.dump_requests %>
124
122
<% end %>
125
- <% if properties.uaa && properties.uaa.spring_profiles && properties.uaa.spring_profiles.include?('ldap') && properties.uaa. ldap && properties.uaa.ldap.profile_type %>
123
+ <% if properties.uaa && properties.uaa.ldap && properties.uaa.ldap.profile_type %>
126
124
ldap:
127
125
ldapdebug: 'Ldap configured through UAA'
128
126
profile:
0 commit comments