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]

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?
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
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
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
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
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