You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by iv...@comcast.net on 2005/12/12 18:50:38 UTC

Forrest Proxy Settings

I see how to set the proxy host and proxy port in the forrest.properties file.

Is  it possible to set the proxy username and proxy password as well?

# Sets the proxy host and proxy port
proxy.host = proxyhost.proxydomain
proxy.port = 8080

# I would like to be able to include
proxy.username = myusername
proxy.password = myproxypassword

Does anyone know of a good work around or a solution?

--
Ivan S Kirkpatrick, PE
cell 253 229 6605

Sooner or later, you're bound to go...

Re: Forrest Proxy Settings

Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
Hi Ivan,

    I have currently added the ability to set a user and a password to 
cross an an authenticated proxy with forrest.
    I cannot test it because my proxy recognise me ;-) .

    If you want to test for me - it is not dangerous if we take care  
;-)  - can you tell me the version of forrest you are using and I will 
send you a file to replace...


Salutations,
Cyriaque,



Ross Gardler a écrit :

> ivank2005@comcast.net wrote:
>
>> I see how to set the proxy host and proxy port in the 
>> forrest.properties file.
>>
>> Is  it possible to set the proxy username and proxy password as well?
>>
>> # Sets the proxy host and proxy port
>> proxy.host = proxyhost.proxydomain
>> proxy.port = 8080
>>
>> # I would like to be able to include
>> proxy.username = myusername
>> proxy.password = myproxypassword
>>
>> Does anyone know of a good work around or a solution?
>
>
> There is currently no known workaround. The solution is to add 
> relevant properties to the forrest.properties file and use them in 
> them when connecting.
>
> The required properties are:
>
> proxypassword    
> Set the password for the proxy. Used only if the proxyUser is set.    
>
> proxyuser
> Set the proxy user. Probably requires a password to accompany
> this setting. Default=""
>
> Another user reqested this a couple of weeks ago, but was not 
> motivated enough to implement a solution. Cyriaque Dupoirieux promised 
> to implement it, but has not, to date, found the time.
>
> If you want to tackle it then take a look at the init-proxy target in 
> FORREST_HOME/main/forrest.build.xml
>
> That is where the existing proxy properties are used. If you are not 
> familiar with ant then see the manual entry for the setproxy task 
> used: http://ant.apache.org/manual/OptionalTasks/setproxy.html
>
> If you don't have the time/inclination to tackle this please raise an 
> issue on JIRA and add these comments for whoever comes to tackle this.
>
> Ross
>
>

Re: Forrest Proxy Settings

Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
Ross Gardler a écrit :

> Gav.... wrote:
>
>> |
>> | The defaults should really be set in defaults.forrest.properties - not
>> | in the forrest.build.xml (this goes for proxy.port as well).
>>
>> The proxy.poer setting was already there. The target is 'init-proxy' 
>> I assumed
>> meaning 'initial proxy settings' and therefore default, to be 
>> overridden in
>> project.properties. I'll take a look in defaults.forrest.properties.
>
>
> All properties should be defined in a single place, for us that is 
> default.forrest.properties. Then we don't have to go hunting for the 
> default settings in multiple locations.
>
> Sure, individual users can override in thiner projects 
> forrest.properties. However, having it in default.forrest.properties 
> allows site wide defaults to be easily set.
>
> We should have spotted the proxy.port default on the original commit, 
> but clearly we didn't. No is the time to fix that.

Ross, I am currently working on this and will correct it both for the 
0.7 and the 08-dev.

Cyriaque,

>
> Ross
>
>

Re: Forrest Proxy Settings

Posted by Ross Gardler <rg...@apache.org>.
Gav.... wrote:

> |
> | The defaults should really be set in defaults.forrest.properties - not
> | in the forrest.build.xml (this goes for proxy.port as well).
> 
> The proxy.poer setting was already there. The target is 'init-proxy' I 
> assumed
> meaning 'initial proxy settings' and therefore default, to be overridden in
> project.properties. I'll take a look in defaults.forrest.properties.

All properties should be defined in a single place, for us that is 
default.forrest.properties. Then we don't have to go hunting for the 
default settings in multiple locations.

Sure, individual users can override in thiner projects 
forrest.properties. However, having it in default.forrest.properties 
allows site wide defaults to be easily set.

We should have spotted the proxy.port default on the original commit, 
but clearly we didn't. No is the time to fix that.

Ross

Re: Forrest Proxy Settings

Posted by "Gav...." <br...@brightontown.com.au>.
----- Original Message ----- 
From: "Ross Gardler" <rg...@apache.org>
To: <de...@forrest.apache.org>
Sent: Tuesday, December 13, 2005 7:32 AM
Subject: Re: Forrest Proxy Settings


| Gav.... wrote:
| > The current init-proxy target says:-
| >
| >   <target name="init-proxy" if="proxy.host">
| >    <property name="proxy.port" value="80"/>
| >    <echo>Using proxy : ${proxy.host}:${proxy.port}</echo>
| >    <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"/>
| >   </target>
| >
| > Would changing it to this be enough or is there more to do :-
| >
| >   <target name="init-proxy" if="proxy.host">
| >    <property name="proxy.port" value="80"/>
| >    <property name="proxy.user" value=""/>
| >    <property name="proxy.password" value=""/>
| >    <echo>Using proxy : ${proxy.host}:${proxy.port}</echo>
| >    <echo>Using Username : ${proxy.user}:${proxy.password}</echo>
| >    <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"/>
| >    <setproxy proxyuser="${proxy.user}" 
proxypassword="${proxy.password}"/>
| >   </target>
| >
| > After which , proxy.user and proxy.password can then be set in project
| > properties.
|
| I don't know if it works or not because I'm not behind an authenticating
|  proxy so can't easily test. I do have a few observations though:

I can't test either as I dont have proxy at all, just trying some ideas.

|
| I don't think there would be two setproxy tasks and it is best not to
| echo the password to screen (people looking over shoulders, logging
| scripts etc.)

Ok, so combine the setproxy tasks together and dont echo the password,
I'll change it.
|
| Also I'm not sure of the default behaviour if no user/password
| combination is provided. Would need to check the Ant manual for that, it
| may be necessary to put a guard on there if they are not set.

Ant Manual says that proxyuser has a default of "" and proxypassword is
only checked/used if proxyuser has been set (other than default) so I
assumed I was ok with what I did.

|
| The defaults should really be set in defaults.forrest.properties - not
| in the forrest.build.xml (this goes for proxy.port as well).

The proxy.poer setting was already there. The target is 'init-proxy' I 
assumed
meaning 'initial proxy settings' and therefore default, to be overridden in
project.properties. I'll take a look in defaults.forrest.properties.

I'll post a revised version later.

Thanks

Gav...

|
| Ross
|
|
| -- 
| No virus found in this incoming message.
| Checked by AVG Free Edition.
| Version: 7.1.371 / Virus Database: 267.13.13/197 - Release Date: 9/12/2005
|
| 



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.13/197 - Release Date: 9/12/2005



Re: Forrest Proxy Settings

Posted by Ross Gardler <rg...@apache.org>.
Gav.... wrote:
> The current init-proxy target says:-
> 
>   <target name="init-proxy" if="proxy.host">
>    <property name="proxy.port" value="80"/>
>    <echo>Using proxy : ${proxy.host}:${proxy.port}</echo>
>    <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"/>
>   </target>
> 
> Would changing it to this be enough or is there more to do :-
> 
>   <target name="init-proxy" if="proxy.host">
>    <property name="proxy.port" value="80"/>
>    <property name="proxy.user" value=""/>
>    <property name="proxy.password" value=""/>
>    <echo>Using proxy : ${proxy.host}:${proxy.port}</echo>
>    <echo>Using Username : ${proxy.user}:${proxy.password}</echo>
>    <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"/>
>    <setproxy proxyuser="${proxy.user}" proxypassword="${proxy.password}"/>
>   </target>
> 
> After which , proxy.user and proxy.password can then be set in project 
> properties.

I don't know if it works or not because I'm not behind an authenticating 
  proxy so can't easily test. I do have a few observations though:

I don't think there would be two setproxy tasks and it is best not to 
echo the password to screen (people looking over shoulders, logging 
scripts etc.)

Also I'm not sure of the default behaviour if no user/password 
combination is provided. Would need to check the Ant manual for that, it 
may be necessary to put a guard on there if they are not set.

The defaults should really be set in defaults.forrest.properties - not 
in the forrest.build.xml (this goes for proxy.port as well).

Ross

Re: Forrest Proxy Settings

Posted by "Gav...." <br...@brightontown.com.au>.
The current init-proxy target says:-

  <target name="init-proxy" if="proxy.host">
   <property name="proxy.port" value="80"/>
   <echo>Using proxy : ${proxy.host}:${proxy.port}</echo>
   <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"/>
  </target>

Would changing it to this be enough or is there more to do :-

  <target name="init-proxy" if="proxy.host">
   <property name="proxy.port" value="80"/>
   <property name="proxy.user" value=""/>
   <property name="proxy.password" value=""/>
   <echo>Using proxy : ${proxy.host}:${proxy.port}</echo>
   <echo>Using Username : ${proxy.user}:${proxy.password}</echo>
   <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"/>
   <setproxy proxyuser="${proxy.user}" proxypassword="${proxy.password}"/>
  </target>

After which , proxy.user and proxy.password can then be set in project 
properties.

Gav...


----- Original Message ----- 
From: "Ross Gardler" <rg...@apache.org>
To: <de...@forrest.apache.org>
Sent: Tuesday, December 13, 2005 3:28 AM
Subject: Re: Forrest Proxy Settings


| ivank2005@comcast.net wrote:
| > I see how to set the proxy host and proxy port in the forrest.properties 
file.
| >
| > Is  it possible to set the proxy username and proxy password as well?
| >
| > # Sets the proxy host and proxy port
| > proxy.host = proxyhost.proxydomain
| > proxy.port = 8080
| >
| > # I would like to be able to include
| > proxy.username = myusername
| > proxy.password = myproxypassword
| >
| > Does anyone know of a good work around or a solution?
|
| There is currently no known workaround. The solution is to add relevant
| properties to the forrest.properties file and use them in them when
| connecting.
|
| The required properties are:
|
| proxypassword
| Set the password for the proxy. Used only if the proxyUser is set.
|
| proxyuser
| Set the proxy user. Probably requires a password to accompany
| this setting. Default=""
|
| Another user reqested this a couple of weeks ago, but was not motivated
| enough to implement a solution. Cyriaque Dupoirieux promised to
| implement it, but has not, to date, found the time.
|
| If you want to tackle it then take a look at the init-proxy target in
| FORREST_HOME/main/forrest.build.xml
|
| That is where the existing proxy properties are used. If you are not
| familiar with ant then see the manual entry for the setproxy task used:
| http://ant.apache.org/manual/OptionalTasks/setproxy.html
|
| If you don't have the time/inclination to tackle this please raise an
| issue on JIRA and add these comments for whoever comes to tackle this.
|
| Ross
|
|
| -- 
| No virus found in this incoming message.
| Checked by AVG Free Edition.
| Version: 7.1.371 / Virus Database: 267.13.13/197 - Release Date: 9/12/2005
|
| 



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.13/197 - Release Date: 9/12/2005



Re: Forrest Proxy Settings

Posted by Ross Gardler <rg...@apache.org>.
ivank2005@comcast.net wrote:
> I see how to set the proxy host and proxy port in the forrest.properties file.
> 
> Is  it possible to set the proxy username and proxy password as well?
> 
> # Sets the proxy host and proxy port
> proxy.host = proxyhost.proxydomain
> proxy.port = 8080
> 
> # I would like to be able to include
> proxy.username = myusername
> proxy.password = myproxypassword
> 
> Does anyone know of a good work around or a solution?

There is currently no known workaround. The solution is to add relevant 
properties to the forrest.properties file and use them in them when 
connecting.

The required properties are:

proxypassword 	
Set the password for the proxy. Used only if the proxyUser is set. 	

proxyuser
Set the proxy user. Probably requires a password to accompany
this setting. Default=""

Another user reqested this a couple of weeks ago, but was not motivated 
enough to implement a solution. Cyriaque Dupoirieux promised to 
implement it, but has not, to date, found the time.

If you want to tackle it then take a look at the init-proxy target in 
FORREST_HOME/main/forrest.build.xml

That is where the existing proxy properties are used. If you are not 
familiar with ant then see the manual entry for the setproxy task used: 
http://ant.apache.org/manual/OptionalTasks/setproxy.html

If you don't have the time/inclination to tackle this please raise an 
issue on JIRA and add these comments for whoever comes to tackle this.

Ross