activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r875850 - in /websites/production/activemq/content: cache/main.pageCache security.html
Date Fri, 23 Aug 2013 11:21:28 GMT
Author: buildbot
Date: Fri Aug 23 11:21:28 2013
New Revision: 875850

Log:
Production update by buildbot for activemq

Modified:
    websites/production/activemq/content/cache/main.pageCache
    websites/production/activemq/content/security.html

Modified: websites/production/activemq/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/activemq/content/security.html
==============================================================================
--- websites/production/activemq/content/security.html (original)
+++ websites/production/activemq/content/security.html Fri Aug 23 11:21:28 2013
@@ -32,16 +32,6 @@
     </style>
     <![endif]-->
 
-          <link href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' /> 
-      <link href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' /> 
-      <script src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js' type='text/javascript'></script>

-              <script src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script> 
-              <script src='http://activemq.apache.org/styles/highlighter/scripts/shBrushXml.js'
type='text/javascript'></script> 
-         
-      <script type="text/javascript"> 
-        SyntaxHighlighter.defaults['toolbar'] = false; 
-        SyntaxHighlighter.all(); 
-      </script> 
     
     <title>
     Apache ActiveMQ &#8482; -- Security
@@ -151,8 +141,53 @@
 
 <h4><a shape="rect" name="Security-AuthorizationExample"></a>Authorization
Example</h4>
 
-<p>The following <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/security/jaas-broker.xml">example</a>
shows these 2 plugins in operation. Though note its very easy to write your own plugin.</p>
-<div class="error"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException:
Index: 20, Size: 20</span> </div>
+<p>The following <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/activemq/trunk/activemq-unit-tests/src/test/resources/org/apache/activemq/security/jaas-broker.xml">example</a>
shows these 2 plugins in operation. Though note its very easy to write your own plugin.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans
+  xmlns="http://www.springframework.org/schema/beans"
+  xmlns:amq="http://activemq.apache.org/schema/core"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+  http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd"&gt;
+
+  &lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/&gt;
+
+  &lt;broker useJmx="false" persistent="false" xmlns="http://activemq.apache.org/schema/core"
populateJMSXUserID="true"&gt;
+
+    &lt;plugins&gt;
+      &lt;!--  use JAAS to authenticate using the login.config file on the classpath
to configure JAAS --&gt;
+      &lt;jaasAuthenticationPlugin configuration="activemq-domain" /&gt;
+
+      &lt;!--  lets configure a destination based authorization mechanism --&gt;
+      &lt;authorizationPlugin&gt;
+        &lt;map&gt;
+          &lt;authorizationMap&gt;
+            &lt;authorizationEntries&gt;
+              &lt;authorizationEntry queue="&gt;" read="admins" write="admins" admin="admins"
/&gt;
+              &lt;authorizationEntry queue="USERS.&gt;" read="users" write="users"
admin="users" /&gt;
+              &lt;authorizationEntry queue="GUEST.&gt;" read="guests" write="guests,users"
admin="guests,users" /&gt;
+              
+              &lt;authorizationEntry topic="&gt;" read="admins" write="admins" admin="admins"
/&gt;
+              &lt;authorizationEntry topic="USERS.&gt;" read="users" write="users"
admin="users" /&gt;
+              &lt;authorizationEntry topic="GUEST.&gt;" read="guests" write="guests,users"
admin="guests,users" /&gt;
+              
+              &lt;authorizationEntry topic="ActiveMQ.Advisory.&gt;" read="guests,users"
write="guests,users" admin="guests,users"/&gt;
+            &lt;/authorizationEntries&gt;
+            
+            &lt;!-- let's assign roles to temporary destinations. comment this entry
if we don't want any roles assigned to temp destinations  --&gt;
+            &lt;tempDestinationAuthorizationEntry&gt;  
+              &lt;tempDestinationAuthorizationEntry read="tempDestinationAdmins" write="tempDestinationAdmins"
admin="tempDestinationAdmins"/&gt;
+           &lt;/tempDestinationAuthorizationEntry&gt;               
+          &lt;/authorizationMap&gt;
+        &lt;/map&gt;
+      &lt;/authorizationPlugin&gt;
+    &lt;/plugins&gt;
+  &lt;/broker&gt;
+
+&lt;/beans&gt;
+]]></script>
+</div></div>
 
 <p><b>Note</b> that full access rights should generally be given to the
ActiveMQ.Advisory destinations because by default an ActiveMQConnection uses destination advisories
to get early knowledge of temp destination creation and deletion. In addition, dynamic network
connectors use advisories to determine consumer demand.<br clear="none">
 If necessary, the use of advisories in this manner can be disabled via the <em>watchTopicAdvisories</em>
boolean attribute of ActiveMQConnectionFactory and for a networkConnector, via the network
connector <em>staticBridge</em>(5.6) boolean attribute.</p>



Mime
View raw message