lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SolrSecurity" by ryan
Date Mon, 17 Nov 2008 16:36:57 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by ryan:
http://wiki.apache.org/solr/SolrSecurity

------------------------------------------------------------------------------
  
  
  Any queries into /instock, such as /instock?q=ipod, will always be limited to documents
with an indexed inStock field containing a value of "true", and all responses will include
facet counts for the "cat" field.
+ 
+ 
+ === Resin example authentication ===
+ 
+ See http://caucho.com/resin/doc/webapp-tags.xtp#auth-constraint
+ 
+ Here is an example showing how to force login for /update and /admin
+ {{{
+       <web-app 
+         id="/solr" 
+         document-directory="/path/to/where/it/gets/exploded"
+         archive-path="/path/to/solr.war"
+         character-encoding="utf-8">
+             
+        <system-property solr.solr.home="/path/to/solr/data" />
+       
+        <authenticator type="com.caucho.server.security.XmlAuthenticator">
+           <init>
+             <user>yourusername:yourpassword:user,admin</user>
+             <password-digest>none</password-digest>
+           </init>
+         </authenticator>
+        <security-constraint url-pattern='/update/*' role-name='user'/>
+        <security-constraint url-pattern='/admin/*' role-name='user'/>
+        
+      </web-app>
+ }}}
+ 
+ 
  
  == Document Level Security ==
  

Mime
View raw message