By agitechcr
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!
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 the waffle.tomcat
filter is applied correctly in web.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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.