Hi,
This task has been fixed. The Java class was very static and we re-design
the auth method.
Thanks for your help.

-----Ursprüngliche Nachricht-----
Von: Rainer Jung [mailto:rainer.j...@kippdata.de] 
Gesendet: Dienstag, 9. Juni 2009 11:05
An: Tomcat Users List
Betreff: Re: URL Auth Apache 2.2.11 + Tomcat 6.0.16

On 08.06.2009 21:49, Alexander Diedler wrote:
> Hi,
> 
> Since we modify our server to use mod_jk to serve sites there is an
> error with a Tomcat Action, that requires a HTML Auth.
> 
> If we open the URL http://www.bla.de/?action=Import in a Browser, there
> is a Auth-Dialog to fill in Username and Passwort. This Username and
> Password seems to be hard coded in the action.
> 
> If a scheduled Task try to excecute the Task there is a 401 Error
> 
> java -cp D:\wwwroot\Java_shop\WEB-INF\classes
> com.j2dot.app.fv.ImportStandalone
> 
> It is possible to add parameters in the cmd function?

You need to find out, what kind of http client your "cmd function" uses.
Many http clients support Basci authentication with username and
password, but you would need to either configure your http client or
somehow present the credentials to it. How this is done depends on the
client you or your developers have chosen. Ask the question to the
people who wrote com.j2dot.app.fv.ImportStandalone.

Alternatively you could allow access to the URL from e.g. special client
IPs without adding the need for username and password. This would help,
in case you import client runs on few systems, which are assumed to be
secure.

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to