Re: configure httpclient to access solr with user credential on third party host

2011-01-28 Thread Thibaut
hi I just wrote a plugin for Lutece portal to restrict access to read/write of solr to Lutece admin and read access for the rest: http://goo.gl/f3pGA t.

Re: configure httpclient to access solr with user credential on third party host

2011-01-28 Thread Upayavira
On Thu, 27 Jan 2011 13:47 -0800, "Darniz" wrote: > > thanks exaclty i asked my domain hosting provider and he provided me with > some other port > > i am wondering can i specify credentials without the port > > i mean when i open the browser and i type > www.mydomainmame/solr i get the tomca

Re: configure httpclient to access solr with user credential on third party host

2011-01-27 Thread Jayendra Patil
This should help HttpClient client = new HttpClient(); client.getParams().setAuthenticationPreemptive(true); AuthScope scope = new AuthScope(AuthScope.ANY_HOST,AuthScope.ANY_PORT); client.getState().setCredentials(scope, new UsernamePasswordCredentials(user, password)); Regards, Jayendra On

Re: configure httpclient to access solr with user credential on third party host

2011-01-27 Thread Darniz
thanks exaclty i asked my domain hosting provider and he provided me with some other port i am wondering can i specify credentials without the port i mean when i open the browser and i type www.mydomainmame/solr i get the tomcat auth login screen. in the same way can i configure the http clien

Re: configure httpclient to access solr with user credential on third party host

2011-01-27 Thread Upayavira
Looks like you are connecting to Tomcat's AJP port, not the HTTP one. Connect to the Tomcat HTTP port and I suspect you'll have greater success. Upayavira On Wed, 26 Jan 2011 22:45 -0800, "Darniz" wrote: > > Hello, > i uploaded solr.war file on my hosting provider and added security > constrain