BigBastis Blog

BigBastis Blog

About Me & my Digital Lifestyle


Navigation
Categoryspring

Java

Featured

Spring Security with custom AuthoritiesPopulator over LDAP

Posted byuserSebastian Gross on Januar 30th, 2014.

Spring offers you a lot of possibilities when it comes to configuration. But sometimes this billions of possibilities can be a real pita! Reacently i had to connect a Spring MVC application to a LDAP authentication server and since the webapp allready run on spring security i decided to keep it that way an use the LdapAuthenticationProvider offered by spring. When your project is simple enough so you can use the default configurations offered by spring the complete working LDAP configuration can be as simple as this: It’s as simple as that. Unfortunately our webapp doesn’t get the roles from the LDAP, it’s only used to authenticate the user, the roles […]