Polish 'Add support for multi baseDn;

Update multi baseDn support to use the recently introduced
`@Delimter` annotation

Closes gh-11764
This commit is contained in:
Phillip Webb
2018-02-04 10:39:29 -08:00
parent 270dc2cd72
commit eab0b84a80
4 changed files with 49 additions and 29 deletions

View File

@@ -4417,6 +4417,30 @@ follows:
spring.ldap.embedded.base-dn=dc=spring,dc=io
----
[NOTE]
====
It is possible to define multiple base-dn values, however, since distinguished names
usually contain commas, they must be defined using the correct notation.
In yaml files, you can use the yaml list notation:
[source,yaml,indent=0]
----
spring.ldap.embedded.base-dn:
- dc=spring,dc=io
- dc=pivotal,dc=io
----
in properties files, you must include the index as part of the property name:
[source,properties,indent=0]
----
spring.ldap.embedded.base-dn[0]=dc=spring,dc=io
spring.ldap.embedded.base-dn[1]=dc=pivotal,dc=io
----
====
WARNING: `spring.ldap.embedded.base-dn` supports multi base DN, so it must define as follows `spring.ldap.embedded.base-dn[0]=dc=spring,dc=io`
By default, the server starts on a random port and triggers the regular LDAP support.