We have set up an AD server infrastructure, an application server, and a client server connected to the domain.
We have followed several manuals such as:
We have tried:
We have not been successful in getting the test environment and test apps to work properly to validate communication and correct login.
Has anyone managed to do this?
Note: The Tomcat documentation states that testing is with Java 8, but we have already migrated our applications to higher versions because it was necessary to take advantage of the new technologies offered by higher versions.
Note: We also do not know if we made any mistakes when configuring the AD.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey there 👋
A few quick suggestions that might help:
As far as I know, SPNEGO/WAFFLE is still your best bet for SSO with Tomcat + Active Directory, but it’s very sensitive to Java version compatibility and proper Kerberos/SPNEGO setup.
Java 11+ sometimes causes issues with WAFFLE, so if possible, test with Java 8 just to validate your setup works end-to-end first — even if it’s not your final goal. Once it’s working, try upgrading gradually.
Make sure your AD DNS and time sync are correct — Kerberos will silently fail if there’s even slight clock drift or DNS resolution issues.
Double-check your SPN and
krb5.conf
(or Windows registry if you’re using native config) — this is often where things go wrong. Also verify thewaffle.tomcat
filter is applied correctly inweb.xml
.Here’s a good example guide worth revisiting: 👉 https://github.com/Waffle/waffle/blob/master/Docs/tomcat/TomcatSingleSignOnValve.md
If you’re stuck, consider testing with a basic WAFFLE demo app first, outside of your main application, just to confirm the AD integration is actually working before adding complexity.
- Bobby