How can I get plaintext password from spring-security?
问题 I use Grails + spring-security + LDAP to authenticate users. The authentication works now but I need the plain text password to authenticate a second service. I tried the SpringSecurityService properties but none contains the password. Do I have to implement my own UserDetailsMapper or does the LdapUserDetailsMapper also provide the mapping of the plain text password retrieved from the web form? 回答1: You can get the credentials from the org.springframework.security.core.context