November 2017
Intermediate to advanced
542 pages
14h 24m
English
One thing to note is that LDAP may also be used as UserDetailsService. As we will discuss later in the book, UserDetailsService is required to enable various other bits of functionality in the Spring Security infrastructure, including the remember-me and OpenID authentication features.
We will modify our AccountController object to use the LdapUserDetailsService interface to obtain the user. Before doing this, make sure to remove the passwordCompare method, as shown in the following code snippet:
//src/main/java/com/packtpub/springsecurity/configuration/SecurityConfig.java @Override public void configure(AuthenticationManagerBuilder auth) throws Exception { auth .ldapAuthentication() .userSearchFilter("(uid={0})") ...Read now
Unlock full access