Hi,

I want to know if it is possible to mix realms in shiro like authenticate my
user on LDAP server and then map the user role saved on mysql database.

I already have shiro working with mysql, but I want to use my LDAP server to
authenticate my users.

ex of my ini:
[main]
jdbcRealm = org.apache.shiro.realm.jdbc.JdbcRealm
jdbcRealm.permissionsLookupEnabled = true
jdbcRealm.authenticationQuery = SELECT password FROM users WHERE login=?
jdbcRealm.userRolesQuery = SELECT role.name FROM role,users_roles,users
WHERE role.roleId=users_roles.roleId AND users_roles.userId=users.userId AND
users.login=?
jdbcRealm.permissionsQuery = SELECT permission.name  FROM permission,
role_permission, role  WHERE role_permission.roleId=role.roleId AND
role_permission.permissionId=permission.permissionId AND role.name=?
....





--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Authenticate-with-LDAP-and-map-user-role-with-Mysql-tp7579282.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to