107108109110111112113
return makeUserDetailsFromAuthoritiesPopulator(); } } private UserDetail makeUserDetailsFromAuthoritiesPopulator() { return new User("user", "password", GrantedAuthorityBean.build("ROLE_A", "ROLE_B")); }
60616263646566
}); } catch (EntryNotFoundException e) { logger.info("cannot found {} in ldap", username); throw new AuthenticationException("ldap user " + username + " not found"); } return new User(username, ldapPassword, false, false, false, false, null); }