Advertisement
Guest User

Untitled

a guest
May 21st, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. WEB-INF/web.xml:
  2.  
  3.  
  4. <!-- Security settings -->
  5. <security-constraint>
  6. <web-resource-collection>
  7. <web-resource-name>
  8. Solr authenticated application
  9. </web-resource-name>
  10. <url-pattern>/*</url-pattern>
  11. </web-resource-collection>
  12. <auth-constraint>
  13. <role-name>solrrestricted</role-name>
  14. </auth-constraint>
  15. </security-constraint>
  16. <login-config>
  17. <auth-method>BASIC</auth-method>
  18. <realm-name>SOLR login</realm-name>
  19. </login-config>
  20. <security-role>
  21. <description>SOLR user</description>
  22. <role-name>solrrestricted</role-name>
  23. </security-role>
  24.  
  25.  
  26.  
  27.  
  28. conf/tomcat-users.xml:
  29.  
  30. <role rolename="solrrestricted"/>
  31. <role username="solrrestricteduser" password="justforme" roles="solrrestricted"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement