I've created a extended class of ´´DaoAuthenticationProvider´´ and initialized in security.xml:

<bean id="myAuthenticationProvider"...