felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Felix > Apache Felix User Admin - MongoDB Store
Date Fri, 07 Dec 2012 15:14:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=FELIX&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+User+Admin+-+MongoDB+Store">Apache
Felix User Admin - MongoDB Store</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://cwiki.apache.org/confluence/display/~jawi">Jan
Willem Janssen</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <p>The Apache Felix User Admin MongoDB store provides a MongoDB-based store
for use with the Felix UserAdmin service. It uses MongoDB to persist the role information.</p>

<p>Note that this driver additionally needs the <a href="http://www.mongodb.org/display/DOCS/Java+Language+Center"
class="external-link" rel="nofollow">MongoDB java driver</a> in order to operate!
</p>

<p>The MongoDB-based store service this bundle provides can be configured at runtime
by using the service PID "<tt>org.apache.felix.useradmin.mongodb</tt>". The configuration
options recognized by this service are:</p>

<ul>
	<li>"<tt>server</tt>": a space separated string containing the MongoDB
servers. The format for this string is: "<tt>&lt;host1:port1&gt; &lt;host2:port2&gt;</tt>".
This value is optional and defaults to "<tt>localhost:27017</tt>";</li>
	<li>"<tt>dbname</tt>": a string value containing the name of the database
to use for this store. This value is optional and defaults to "<tt>ua_repo</tt>";</li>
	<li>"<tt>collection</tt>": the name of the database collection to use for
this store. This value is optional and defaults to "<tt>useradmin</tt>";</li>
	<li>"<tt>username</tt>": a string value representing the name of the user
to authenticate against MongoDB. This value is optional and defaults to "" (empty string);</li>
	<li>"<tt>password</tt>": a string value representing the password to authenticate
against MongoDB. This value is optional and defaults to "" (empty string).</li>
</ul>


<p>Alternatively, one can also supply the above mentioned configuration keys prefixed
with "<tt>org.apache.felix.useradmin.mongodb.</tt>" as system properties. For<br/>
example by adding <tt>-Dorg.apache.felix.useradmin.mongodb.server=my.mongo.server:29000</tt>
to your JVM arguments will let this service use the MongoDB server at "<tt>my.mongo.server</tt>"
on port 29000. However, using system properties will imply that only a single store can be
configured on a system (which could be a sensible default for some situations)!</p>
    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
       <a href="https://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+User+Admin+-+MongoDB+Store">View
Online</a>
              |
       <a href="https://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+User+Admin+-+MongoDB+Store?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message