spring-projects / spring-projects/spring-security
Create Embedded LDAP Support Classes
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.6k
- Forks
- 6.3k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 52
Description
Currently it requires multiple beans to support embedded ldap support.
@Bean
UnboundIdContainer ldapContainer() {
UnboundIdContainer container = new UnboundIdContainer("dc=springframework,dc=org",
"classpath:users.ldif");
container.setPort(0);
return container;
}
@Bean
DefaultSpringSecurityContextSource contextSource(UnboundIdContainer container) {
return new DefaultSpringSecurityContextSource("ldap://localhost:" + container.getPort() + "/dc=springframework,dc=org");
}
It would be nice to provide single builder that creates/shuts down the embedded database and creates a DefaultSpringSecurityContextSource similar to Spring's EmbeddedDatabaseBuilder.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing UnboundIdContainer and DefaultSpringSecurityContextSource classes, then compare the requested API with Spring's EmbeddedDatabaseBuilder. Done means a single builder can create the embedded LDAP support, provide a DefaultSpringSecurityContextSource, and manage shutdown without multiple beans.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- authentication
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100