This content has been marked as final.
Show 2 replies
-
1. Re: Have problem about
jaikiran Feb 5, 2007 3:16 PM (in response to changemylife)I dont think, you need all this to login using JAAS. Its pretty simple, you need to have the user.conf in your classpath and add using System.setProperty. Also, i see a problem in the code that you have:
LoginContext lc = new LoginContext("clientTest", new MyCallbackHandler());
Shouldnt "clientTest" be "userTest" since your user.conf mentions userTest? -
2. Re: Have problem about
murthy_j2ee Feb 7, 2007 2:31 AM (in response to changemylife)Hi Jaikiran,
I have a problem with config file. I am using jboss server. my code is not able to locate the config file which i put in the same path from where i am instanciating the loginContext. But when I am configuring it in jboss\server\default\conf\login-conf.xml file. It was abled to locate the LoginModule. Can you please tell me how to make it possible form config file it self, because i want to use my own LoginModule.
Thanks in Advance