Julien Graglia (Migrated from SEC-2153) said:
I cannot use a property to configure the port of the embeded LDAP server start by the "ldap-server" element of the security namespace.
It fail on XML validation as port is required to be an "xs:positiveInteger".
Note that org.springframework.security.config.ldap.LdapServerBeanDefinitionParser lookup port attribute as a ... String!
I heading to create 2 profiles to use a different port, and activate the profile with the "spring.profiles.active" property.