Muchas Gracias! On Fri, Apr 24, 2015 at 3:14 AM, Eyeris RodrIguez Rueda <[email protected]> wrote:
> Hello. > Solr authentication is not a difficult in nutch. > I am using this in my proyect with solr 4.10 and nutch 1.9. i will help > you step by step. > I suppose that you are using solr as a service with tomcat server. > First > Solr is not responsible for the login authentication because Tomcat is a > servlet container and it restrict or not any application desployed in it. > You need to edit tomcat-user file and add a role,username and password for > solr user application like this > nano /etc/tomcat7/tomcat-user.xml > > here you need to add a these lines > <role rolename="solr_admin"/> > <user username="usuario" password="password" roles="solr_admin"/> > > after you need to edit this file /etc/tomcat7/web.xml > gedit /etc/tomcat7/web.xml > > go to the end and add this block before to close </web-app> label, see > below > > <!--pass to solr --> > <security-constraint> > <web-resource-collection> > <web-resource-name>Solr Lockdown</web-resource-name> > <url-pattern>/</url-pattern> > </web-resource-collection> > <auth-constraint> > <role-name>solr_admin</role-name> > <role-name>admin</role-name> > </auth-constraint> > </security-constraint> > <login-config> > <auth-method>BASIC</auth-method> > <realm-name>Solr</realm-name> > </login-config> > > now you need to restart tomcat service > service tomcat7 restart > now you need to login to open solr with your user and password data. > http://yourSolrIP:puerto/solr > > now solr is ready and with password, the next step is tell to nutch that > use user and password to index in solr. > go to nutch-site.xml andlike below > change this property to true > > <property> > <name>solr.auth</name> > <value>true</value> > <description> > Whether to enable HTTP basic authentication for communicating with Solr. > Use the solr.auth.username and solr.auth.password properties to configure > your credentials. > </description> > </property> > > now add these 2 more: > <property> > <name>solr.auth.username</name> > <value>usuario</value> > <description> > Solr server user > </description> > </property> > > <property> > <name>solr.auth.password</name> > <value>password</value> > <description> > Solr server password > </description> > </property> > > > > Done! > nutch use password to index in solr. > I hope this help yo. > > This post was very useful for me. > > http://community.zimbra.com/documentation/w/documentation/securing-solr-on-tomcat > > > > > > > ----- Mensaje original ----- > De: "BlackIce" <[email protected]> > Para: [email protected] > Enviados: Jueves, 23 de Abril 2015 16:57:21 > Asunto: Solr Authenticication > > Hi, > > I'm thinking of securing Solr a bit, and I'm finding that there are several > ways of doing this. anyone have any experience with with the > autheticication for solr in nutch? Which type of solr security does one use > with Nuitch 1.9? > > > Thnx >

