November 2017
Intermediate to advanced
542 pages
14h 24m
English
In order to configure a different UserDetailsContextMapper implementation than the default, we simply need to declare which LdapUserDetails class we want LdapAuthenticationProvider to return. The security namespace parser will be smart enough to instantiate the correct UserDetailsContextMapper implementation based on the type of the LdapUserDetails interface requested.
Let's reconfigure our SecurityConfig.java file to use the inetOrgPerson version of the mapper. Update the SecurityConfig.java file, as illustrated in the following code:
//src/main/java/com/packtpub/springsecurity/configuration/SecurityConfig.java @Override public void configure(AuthenticationManagerBuilder auth) throws Exception ...
Read now
Unlock full access