You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Liz Glasser <lg...@zargis.com> on 2010/06/11 22:47:08 UTC
Command tool with password protected database
All,
I have xindice deployed as a war file and need to create an index on it.
I am using the commandline tool. I have my db url configured correctly.
However my db is locked down to require a username and password to
access it. If I use the comandline tool I get a 401 error. How can I
provide a username and password to this tool?
Thank you very much.
Liz
Re: Command tool with password protected database
Posted by Liz Glasser <lg...@zargis.com>.
Thank you. That was exactly what I needed.
Liz
Natalia Shilenkova wrote:
> Liz,
>
> Username and password are retrieved as system properties. If you are using commandline tool to connect to database, you need to add -Dxindice.xmlrpc.user=<username> -Dxindice.xmlrpc.password=<password> VM parameters to the command line for executing commandline tool, which is located n either bin/xindice or bin/xindice.bat, depending on your OS.
>
> If you're using Xindice 1.2m1 or later, there was a problem with setting username and authentication was not working. It is fixed now and fix is available in latest trunk.
>
> Regards,
> Natalia
>
> On Jun 11, 2010, at 4:47 PM, Liz Glasser wrote:
>
>
>> All,
>>
>> I have xindice deployed as a war file and need to create an index on it. I am using the commandline tool. I have my db url configured correctly. However my db is locked down to require a username and password to access it. If I use the comandline tool I get a 401 error. How can I provide a username and password to this tool?
>>
>> Thank you very much.
>>
>> Liz
>>
>
>
>
>
Re: Command tool with password protected database
Posted by Natalia Shilenkova <ns...@gmail.com>.
Liz,
Username and password are retrieved as system properties. If you are using commandline tool to connect to database, you need to add -Dxindice.xmlrpc.user=<username> -Dxindice.xmlrpc.password=<password> VM parameters to the command line for executing commandline tool, which is located n either bin/xindice or bin/xindice.bat, depending on your OS.
If you're using Xindice 1.2m1 or later, there was a problem with setting username and authentication was not working. It is fixed now and fix is available in latest trunk.
Regards,
Natalia
On Jun 11, 2010, at 4:47 PM, Liz Glasser wrote:
> All,
>
> I have xindice deployed as a war file and need to create an index on it. I am using the commandline tool. I have my db url configured correctly. However my db is locked down to require a username and password to access it. If I use the comandline tool I get a 401 error. How can I provide a username and password to this tool?
>
> Thank you very much.
>
> Liz