You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@tomee.apache.org by bu...@apache.org on 2016/05/16 12:10:19 UTC

svn commit: r988363 - in /websites/staging/tomee/trunk: cgi-bin/ content/ content/tomee-jaas.html

Author: buildbot
Date: Mon May 16 12:10:18 2016
New Revision: 988363

Log:
Staging update by buildbot for tomee

Modified:
    websites/staging/tomee/trunk/cgi-bin/   (props changed)
    websites/staging/tomee/trunk/content/   (props changed)
    websites/staging/tomee/trunk/content/tomee-jaas.html

Propchange: websites/staging/tomee/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon May 16 12:10:18 2016
@@ -1 +1 @@
-1742089
+1744034

Propchange: websites/staging/tomee/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon May 16 12:10:18 2016
@@ -1 +1 @@
-1742089
+1744034

Modified: websites/staging/tomee/trunk/content/tomee-jaas.html
==============================================================================
--- websites/staging/tomee/trunk/content/tomee-jaas.html (original)
+++ websites/staging/tomee/trunk/content/tomee-jaas.html Mon May 16 12:10:18 2016
@@ -175,9 +175,9 @@ configure your JAAS LoginModule as in To
     <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
     <Engine name="Catalina" defaultHost="localhost">
       <!-- here is the magic -->
-      <Realm className="org.apache.catalina.realm.JAASRealm" appName="PropertiesLoginModule"
-          userClassNames="org.apache.openejb.core.security.AbstractSecurityService$User"
-          roleClassNames="org.apache.openejb.core.security.AbstractSecurityService$Group">
+      <Realm className="org.apache.catalina.realm.JAASRealm" appName="PropertiesLogin"
+             userClassNames="org.apache.openejb.core.security.jaas.UserPrincipal"
+             roleClassNames="org.apache.openejb.core.security.jaas.GroupPrincipal">
       </Realm>
 
       <Host name="localhost"  appBase="webapps"
@@ -197,7 +197,23 @@ configure your JAAS LoginModule as in To
 };
 </code></pre>
 
-<p>Configure your login module specifically (users.properties for snippets of this page for instance)</p>
+<p>Configure your login module specifically (<code>users.properties</code> for snippets of this page for instance).</p>
+
+<p>Place <code>users.properties</code> and <code>groups.properties</code> files in <code>$CATALINA_BASE/conf/</code> folder.
+<code>users.properties</code> file contains user name and associated password entries, ex.:</p>
+
+<pre><code>me=password
+tomee=tomee
+</code></pre>
+
+<p><code>groups.properties</code> file specifies groups and their users, ex.:</p>
+
+<pre><code>my-role=me
+manager-gui=tomee,me
+tomee-admin=tomee
+</code></pre>
+
+<p><strong>NOTE</strong>: <code>users.properties</code> and <code>groups.properties</code> file names and file location are fixed. If other names are used, the files must be placed in <code>%CATALINA_BASE/lib/</code> folder instead.</p>