dcristea Posted August 13, 2013 Share Posted August 13, 2013 HelloFor the past week I've been struggling to log in using credentials stored in an external database. I have modified and deployed the sample applicationContext-externalAuth-db.xml, as mentioned in the jasperreportsserver-auth-cookbook, but when i try to log in, i get a bad credentials exception. Do you have any suggestion on how to get the external database authentication working ? I have to mention that the password is stored as plain text in my external database.Thank you,Daniel. Link to comment Share on other sites More sharing options...
Solution elizam Posted August 14, 2013 Solution Share Posted August 14, 2013 If you are using plaintext, remove the reference to the passwordValidator bean in externalDaoAuthenticationProvider:<bean id="externalDaoAuthenticationProvider" class="com.jaspersoft.jasperserver.multipleTenancy.security.externalAuth.db.MTExternalDaoAuthenticationProvider"> <property name="userDetailsService"><ref local="externalUserTenantDetailsService"/></property> <property name="passwordValidator"><ref local="passwordValidator"/></property> </bean>This example is from a pro file - the class might be slightly different in community. So make sure to edit your file & not copy this. Link to comment Share on other sites More sharing options...
dcristea Posted August 16, 2013 Author Share Posted August 16, 2013 Thank you for your reply. It seems like the root of my problem was an issue with the authoritiesByUsernameQuery. I would like to ask you if there is any way for me to see the "usersByUsernameQuery" and the "authoritiesByUsernameQuery" queries in the jasperserver log. Link to comment Share on other sites More sharing options...
elizam Posted January 31, 2014 Share Posted January 31, 2014 Just saw this - you can enable additional logging as described here: http://community.jaspersoft.com/documentation/jasperreports-server-authentication-cookbook/v550/configuring-logging-debugging Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now