-
1. Re: Problem accessing secured EJB from inside a JSP
jwkaltz Jul 17, 2002 12:49 PM (in response to abstractone)I don't think your JSP can find the conf file you've given it,
/developer/jboss-test/jboss/client/auth.conf
This probably works in your standalone client, but not in a JSP (which only has access to the files in the web-application) -
2. Re: Problem accessing secured EJB from inside a JSP
abstractone Jul 17, 2002 2:46 PM (in response to abstractone)Hi,
Where should I put this auth.conf file so it works..
If you have example for how you implement the authorization inside a JSP it will be really helpful..
Emo -
3. Re: Problem accessing secured EJB from inside a JSP
jwkaltz Jul 18, 2002 3:36 AM (in response to abstractone)I used the examples in the tutorial
http://www.javaworld.com/javaworld/jw-08-2001/jw-0831-jaas_p.html
What applies to servlets also applies to jsps. -
4. Re: Problem accessing secured EJB from inside a JSP
ytzel Jul 30, 2002 3:50 AM (in response to abstractone)nice idea, but a security hole, do not allow policies like System.set...
if your webapp runs in the same vm as the ejb container, you
MUST NOT change the config property, this causes a problem in the container, which will use this new config.file as the JAAS module stack !!! put a new entry in the server.conf (2.2.4) or in login-config.xml (if your webapp runs insige the container vm) for JAAS security with a Domain like
XXXDomain and the JBOSS ClientLoginModule. you must know the jsp is your client from the EJB container view. i use this in this way and of course it works
Cy -
5. Re: Problem accessing secured EJB from inside a JSP
rizwan Oct 19, 2002 7:29 AM (in response to abstractone)Hi,
Problem in Jboss-Tocmat security.
I have configured all my files accordingly said in forums.
When i dont include the following entry
System.setProperty("java.security.auth.login.config",
"file:c/jboss/client/auth.conf");
Client is validating with serverside login module(other).
If i include that entry i am getting the following error.
Configuration Error.
expected 'module class name', found 'null'
What can be the possible problem can u please tell?
Thank u in advance.
Rizwan