Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
added user-authentication protection to solr search (same as implemented for yacysearch)
Michael Peter Christen7ec7341f60b9
diff --git a/htroot/solr/select.java b/htroot/solr/select.javaindex 772a038d7..cbe6cd790 100644--- a/htroot/solr/select.java+++ b/htroot/solr/select.java@@ -45,6 +45,12 @@ public class select {// this uses the methods in the jetty servlet environment and can be removed if jetty in implementedSwitchboard sb = (Switchboard) env;++ // check if user is allowed to search (can be switched in /ConfigPortal.html)+ final boolean searchAllowed = sb.getConfigBool("publicSearchpage", true) || sb.verifyAuthentication(header);+ if (!searchAllowed) return null;++ // get the embedded connectorEmbeddedSolrConnector connector = (EmbeddedSolrConnector) sb.index.getLocalSolr();if (connector == null) return null;if (post == null) return null;