After a day long searching and trying, I'm still unable to get Spring Security working with Active Directory.
So facts:
- Spring Boot 2.1.0-RELEASE
- JVM 1.8.181
- I definitely want to avoid the security XML config
I'm building a MVC app (single war), and need an AD AuthN. Later AuthZ as well in order to distinguish roles.
I do not want to bother with reviewing my code, but I have followed this example:
LDAP authentication with AD LDP from Spring Boot application
The last comment says it works and most of the examples are varieties of the example above (the process flow is the same), but I'm still getting this message:
LDAP: error code 49 - 80090308: LdapErr: DSID-0C09042F, comment: >AcceptSecurityContext error, data 52e, v2580
Is there any tutorial, or simply things explained to get this working? My credentials are 100% correct and unlocked. Tested with Apache Directory Studio.
Our AD users are under OU=OU_Users,DC=company,DC=com
Thanks a lot!
BR, Pavel