https://suene.iteye.com/blog/1829807
<authentication-manager> <authentication-provider ref="authenticationProvider" /> </authentication-manager> <beans:bean id="authenticationProvider" class="org.e.simple.authtication.LdapAndDbAuthenticationProvider"> <beans:property name="authenticateByLdap" value="false" /> <beans:property name="url" value="ldap://localhost:10389/dc=example,dc=com" /> <beans:property name="userSearchBase" value="ou=Users" /> <beans:property name="hash" value="{sha}" /> </beans:bean> <aut