Re: JdbcRealm authenticationQuery with mutliple user fields

2013-03-06 Thread Paulo Pires
Les, I had the same issue as Charles and I found it would be easier to extend JdbcRealm for this use-case if at least JdbcRealm.getPasswordForUser() was to be protected. If this was the case, all one has to do is: 1) extends JdbcRealm 2) @Override getPasswordForUser() 2.1) Hack as follows: ps.set

Re: JdbcRealm authenticationQuery with mutliple user fields

2012-03-08 Thread Les Hazlewood
Hi Charles, The existing JdbcRealm is not too flexible for this type of customization. Your best bet is to probably look at the existing source code [1], and override doGetAuthenticationInfo to work with your particular query. HTH, Les [1] http://svn.apache.org/repos/asf/shiro/trunk/core/src/