Using JAAS for Windows NT Authentication

Hi all:

I am now seeking a solution that can support NT authentication in web applications. I want users to key in their NT username and password and after authentication, I will keep the status in my java bean.

After studing JAAS and checking forum for a while, I am wondering if there is anyone who can successfully integrate JAAS into their web applications. Is there any one who have used JAAS for NT authentication? If so, can you give me a WORKABLE sample?

Thanks a lot.

[508 byte] By [cclin3123] at [2007-9-26 7:28:42]
# 1
Some one here mentioned http://free.tagish.net/jaas/index.jsp. I have downloaded that example and it works on authenticating NT/2000 user.Good luckjun
cloudjun at 2007-7-1 17:24:39 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 2

I just successfully ran a sample authentication program and it works. Now, another question come into my mind. Since I have to use java -Djava.security.auth.login.config==<configuration file name> <java class name> to run the sample. I am wondering how can I run the class and specify the -Djava.security.auth.logn.config parameter in my JSP.

Is there anybody know how to do this in JSP?

cclin3123 at 2007-7-1 17:24:39 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 3
when you start tomcat. Change the configuration file and insert the parameterbyeMarco
info_77 at 2007-7-1 17:24:39 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 4
You can use System.setProperty() to modify system propertybyeMarco
info_77 at 2007-7-1 17:24:39 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 5
Hi,This is regarding passing the config file to the JSP for JAAS,have you found any solution for this I am also facing the same problem.Can you thro some tips.ThanksRath
mrkumar26 at 2007-7-1 17:24:39 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 6
Hi,This is regarding passing the config file to the JSP for JAAS,have you found any solution for this I am also facing the same problem.Can you thro some tips.ThanksRath
mrkumar26 at 2007-7-1 17:24:39 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 7

I solved my problem by changing the java.security file.

This is how i change it. jaas.config is my configuration file.

#

# Default login configuration file

#

# login.config.url.1=file:${user.home}/.java.login.config

login.config.url.1=file:C:/jws/webapps/configurazione/jaas.config

bye

Marco

info_77 at 2007-7-1 17:24:39 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 8

I solved my problem by changing the java.security file.

This is how i change it. jaas.config is my configuration file.

#

# Default login configuration file

#

# login.config.url.1=file:${user.home}/.java.login.config

login.config.url.1=file:C:/jws/webapps/configurazione/jaas.config

bye

Marco

info_77 at 2007-7-1 17:24:39 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 9

I solved my problem by changing the java.security file.

This is how i change it. jaas.config is my configuration file.

#

# Default login configuration file

#

# login.config.url.1=file:${user.home}/.java.login.config

login.config.url.1=file:C:/jws/webapps/configurazione/jaas.config

bye

Marco

info_77 at 2007-7-1 17:24:39 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 10
Cld anyone post the code for NT Authentication pls?Seetesh
seeteshh at 2007-7-1 17:24:39 > top of Java-index,Security,Other Security APIs, Tools, and Issues...