Skip to content

SEC-2153: Can't configure port of ldap-server of security namespace with a property : xml schema require a "xs:positiveInteger" #2378

@spring-projects-issues

Description

@spring-projects-issues

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: configAn issue in spring-security-configin: ldapAn issue in spring-security-ldaptype: enhancementA general enhancementtype: jiraAn issue that was migrated from JIRA

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions