I do not know your exact problem, but in case you have not given some more
parameter to JdbcRealm, here is an example:
[main] 
# realms to be used
#saltedJdbcRealm = com.jbosol.security.dao.MySimpleAccountRealm
saltedJdbcRealm = com.jbosol.security.dao.JndiAndSaltAwareJdbcRealm
#
# any object property is automatically configurable in Shiro.ini file
saltedJdbcRealm.jndiDataSourceName=java:comp/env/jdbc/Security
#
# the realm should handle also authorization
saltedJdbcRealm.permissionsLookupEnabled=true
#
# If not filled, subclasses of JdbcRealm assume "select password from users
where username = ?"
# first result column is password, second result column is salt 
saltedJdbcRealm.authenticationQuery = select u.passwd , s.salt from user u,
salt s where user = ?

# password hashing specification, put something big for hashIterations
sha256Matcher = org.apache.shiro.authc.credential.HashedCredentialsMatcher
sha256Matcher.hashAlgorithmName=SHA-256
sha256Matcher.hashIterations=1024
#Bas64 encoded : hex -> Character
sha256Matcher.storedCredentialsHexEncoded=false;
saltedJdbcRealm.credentialsMatcher = $sha256Matcher

Can you explain in more details, if this couldn't help you.

Walter






--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Custom-Realm-tp7577630p7577633.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to