You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2012/11/08 02:03:15 UTC
[Solr Wiki] Update of "SolrSecurity" by aelder
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "SolrSecurity" page has been changed by aelder:
http://wiki.apache.org/solr/SolrSecurity?action=diff&rev1=26&rev2=27
For the most basic authentication, edit jetty.xml, webdefault.xml and add to realm.properties
- Uncomment this section in /example/etc/jetty.xml
+ In Jetty 6 Add / uncomment this section in /example/etc/jetty.xml
{{{
<Set name="UserRealms">
<Array type="org.mortbay.jetty.security.UserRealm">
@@ -78, +78 @@
</Item>
</Array>
</Set>
+ }}}
+
+ In Jetty 8 (which ships with Solr 4) you add this to /example/etc/jetty.xml
+ {{{
+ <Call name="addBean">
+ <Arg>
+ <New class="org.eclipse.jetty.security.HashLoginService">
+ <Set name="name">Test Realm</Set>
+ <Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/realm.properties</Set>
+ <Set name="refreshInterval">0</Set>
+ </New>
+ </Arg>
+ </Call>
}}}
Add this inside <web-app ..> to /example/etc/webdefault.xml