You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2014/03/17 13:00:27 UTC
svn commit: r1578324 -
/isis/site/trunk/content/components/security/shiro/using-ldap.md
Author: danhaywood
Date: Mon Mar 17 12:00:27 2014
New Revision: 1578324
URL: http://svn.apache.org/r1578324
Log:
stuff on permissions format
Modified:
isis/site/trunk/content/components/security/shiro/using-ldap.md
Modified: isis/site/trunk/content/components/security/shiro/using-ldap.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/components/security/shiro/using-ldap.md?rev=1578324&r1=1578323&r2=1578324&view=diff
==============================================================================
--- isis/site/trunk/content/components/security/shiro/using-ldap.md (original)
+++ isis/site/trunk/content/components/security/shiro/using-ldap.md Mon Mar 17 12:00:27 2014
@@ -51,6 +51,22 @@ where:
The above configuration has been tested against [ApacheDS](http://directory.apache.org/apacheds/), v1.5.7. This can be administered using [Apache Directory Studio](http://directory.apache.org/studio/), v1.5.3.
+### Using a shared role/perms path
+
+As an alternative to injecting the `permissionsByRole` property, the role/permission mapping can alternatively be specified by injecting a resource path:
+
+ ldapRealm.resourcePath=classpath:webapp/myroles.ini
+
+where `myroles.ini` is in `src/main/resources/webapp`, and takes the form:
+
+ [roles]
+ user_role = *:ToDoItemsJdo:*:*,\
+ *:ToDoItem:*:*
+ self-install_role = *:ToDoItemsFixturesService:install:*
+ admin_role = *
+
+This separation of the role/mapping can be useful if Shiro is configured to support multiple realms (eg an LdapRealm based one and also an TextRealm)
+
### Active DS LDAP Configuration
The screenshot below shows the ApacheDS using Apache Directory Studio. The setup here was initially base on [this tutorial](http://krams915.blogspot.co.uk/2011/01/ldap-apache-directory-studio-basic.html). However, user accounts have been moved to a separate node.