Fail fast if ssl.enabled = true without an SSL bundle

Setting spring.ldap.embedded.ssl.enabled without an SSL bundle started a
plain LDAP listener silently. It now fails at startup as a bundle is
required to provide the server's certificate and private key.

Closes gh-51471
This commit is contained in:
Moritz Halbritter
2026-08-27 09:32:13 +02:00
parent 6c33f551e7
commit bf1b583596
4 changed files with 23 additions and 5 deletions
@@ -809,3 +809,7 @@ spring:
ssl:
bundle: "example"
----
The bundle must provide the server's certificate and private key.
NOTE: An SSL bundle is required for LDAPS. Setting configprop:spring.ldap.embedded.ssl.enabled[] without configprop:spring.ldap.embedded.ssl.bundle[] fails at startup.