Regarding your second question this might help: http://shiro-user.582556.n2.nabble.com/Example-Shiro-Active-Directory-Realm-with-role-gt-permission-mapping-td7579030.html
-- View this message in context: http://shiro-user.582556.n2.nabble.com/How-to-predefine-a-role-permission-mapping-outside-realms-tp7580487p7580488.html Sent from the Shiro User mailing list archive at Nabble.com.
