mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-16 23:33:31 +00:00
SEC-594: Set password on UserDetails object returned by BindAuthenticator.
This commit is contained in:
parent
ac0e308354
commit
89cde2507d
@ -87,6 +87,7 @@ public class BindAuthenticator extends AbstractLdapAuthenticator {
|
||||
LdapUserDetailsImpl.Essence user = (LdapUserDetailsImpl.Essence) template.retrieveEntry(userDn,
|
||||
getUserDetailsMapper(), getUserAttributes());
|
||||
user.setUsername(username);
|
||||
user.setPassword(password);
|
||||
|
||||
return user.createUserDetails();
|
||||
} catch (BadCredentialsException e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user