This link works well for a single user/password HTTP basic auth
http://lambda.fortytools.com/post/26977061125/servlet-filter-for-http-basic-auth
Does anyone have any snippets for HTTP basic auth that authenticates against ActiveDirectory user/password?
2
Answers
You could take a look at this example here and change the source e.g. from here to use the code from the first link.
Link#1 content:
Link#2 content:
At this link you can find a good example using Spring Security.
Basically you should create a class to extend WebSecurityConfigurerAdapter and overriding the configure(AuthenticationManagerBuilder auth) method.