Files
Josh Cummings 45e3e2a87a Update Source Build to 17
- Needed for Release Plugin
- Binaries still compile to 8
2024-02-02 13:16:21 -07:00
..
2022-02-09 14:18:17 -07:00
2024-02-02 13:16:21 -07:00
2022-02-09 14:18:17 -07:00

A Hello World Spring LDAP application using Spring Boot

The application is protected by Spring Security and uses an embedded UnboundID container for its LDAP server.

You can authenticate with HTTP basic using bob/bobspassword:

curl --user bob:bobspassword localhost:8080

And you should see the response:

Hello, bob

Also, you can hit the cn endpoint which uses LdapTemplate to query the datastore for the user's cn attribute value, like so:

curl --user bob:bobspassword localhost:8080/cn

This should result in:

[
    "Bob Hamilton"
]

To run the example, do ./gradlew :bootRun.