You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Prathapan Nair <gp...@rediffmail.com> on 2000/11/21 20:52:46 UTC
How to set the system propetries? Help Requested!!
Hi all
Sub - Calling a java Program in a Servlet in Windows Env.
I want to use JAAS in my servlet to do the authentication. For that I need to set the following propeties during run time before calling the JAAS program.
java.security.manager
java.security.policy==E:\jass1_0\doc\samples\config\sample_java2.policy
java.security.auth.policy==doc\samples\config\sample_jaas.policy java.security.auth.login.config==doc\samples\config\sample_jaas.config
When I run the JAAS Program I run the following script in the shell
E:\jdk1.3\jre\bin\java -classpath doc\samples\sample.jar;doc\samples\sample_action.jar;doc\samples\sample_module.jar -Djava.security.manager -Djava.security.policy==doc\samples\config\sample_java2.policy -Djava.security.auth.policy==doc\samples\config\sample_jaas.policy -Djava.security.auth.login.config==doc\samples\config\sample_jaas.config sample.Sample
Can any one help?
Prathapan
_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com
Participate in crazy auctions at http://auctions.rediff.com/auctions/
Re: How to set the system propetries? Help Requested!!
Posted by Kurt Bernhard Pruenner <le...@gmx.at>.
Prathapan Nair wrote:
> I want to use JAAS in my servlet to do the authentication. For that I need
> to set the following propeties during run time before calling the JAAS
> program.
java.lang.System.setProperty(key,value)
--
Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria
Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at
.......It might be written "Mindfuck", but it's spelt "L-A-I-N".......
np: Bola - Whoblo (Soup)
RE: How to set the system propetries? Help Requested!!
Posted by Wouter Boers <wo...@ikke.net>.
Look at what you just asked. You answered your question yourself.
> I want to use JAAS in my servlet to do the authentication. For
> that I need to set the following propeties during run time before
> calling the JAAS program.
>
> java.security.manager
> java.security.policy==E:\jass1_0\doc\samples\config\sample_java2.policy
> java.security.auth.policy==doc\samples\config\sample_jaas.policy
> java.security.auth.login.config==doc\samples\config\sample_jaas.config
>
Ok, very fine and now look at the -D setting of your java environment.
> When I run the JAAS Program I run the following script in the shell
>
> E:\jdk1.3\jre\bin\java -classpath
> doc\samples\sample.jar;doc\samples\sample_action.jar;doc\samples\s
> ample_module.jar -Djava.security.manager
> -Djava.security.policy==doc\samples\config\sample_java2.policy
> -Djava.security.auth.policy==doc\samples\config\sample_jaas.policy
>
> -Djava.security.auth.login.config==doc\samples\config\sample_jaas.
> config sample.Sample
Looks like all you have to do is edit the run script and put E:\jass1_0 in
front of the settings.
have you tried that?
Wouter