November 2017
Intermediate to advanced
542 pages
14h 24m
English
The configuration of LDAP as a UserDetailsService function is very similar to the configuration of an LDAP AuthenticationProvider. Like the JDBC UserDetailsService, an LDAP UserDetailsService interface is configured as a sibling to the <http> declaration. Make the following updates to the SecurityConfig.java file:
//src/main/java/com/packtpub/springsecurity/configuration/SecurityConfig.java @Bean @Override public UserDetailsService userDetailsService() { return super.userDetailsService(); }
Functionally, o.s.s.ldap.userdetails.LdapUserDetailsService is configured in almost exactly the same way as LdapAuthenticationProvider, with the exception that there is no attempt to use the principal's username to bind ...
Read now
Unlock full access