-
1. Re: newbie to jboss authentication/configuration
ikloeckl Apr 22, 2003 8:27 AM (in response to stevecoh1)Hi,
the jboss-web.xml file does not exist until you write one. If it's just for securing the web app, this one should suffer:
<jboss-web>
<security-domain>java:jaas/YourSecurityDomainName</security-domain>
</jboss-web>
This file is placed where the web.xml also lives, that is WEB-INF subdirectory in the web archive file.
In the login-conf.xml, you define all usable security domains, in the jboss-web.xml you refer to a special one (must be previously defined, of course).
Hope that helps
Ingo -
2. Re: newbie to jboss authentication/configuration
didi1976 Apr 22, 2003 10:22 AM (in response to stevecoh1)Hi,
I asume your ear-file contains a war-file.
Just put the jboss-web.xml along with your web.xml in there.
The jboss-web.xml looks like this:
<jboss-web>
<security-domain>java:/jaas/yourloginmodule</security-domain>
</jboss-web>
The "yourloginmodule" referres to the name that you have used in the login-config.xml file.
Dietmar -
3. Re: newbie to jboss authentication/configuration
tlamarca Apr 22, 2003 1:09 PM (in response to stevecoh1)if you have already been helped, nevermind. otherwise...
you need to create a jboss-web.xml file and it will have a single entry (for these purposes anyway):
<security-domain>java:/jaas/client-login</security-domain>
where "client-login" is the name of whichever security domain you want to use.
jboss-web.xml should be placed in the WEB-INF directory of your war file.
i wrote an article about this with some sample code at:
http://jboss.org/thread.jsp?forum=49&thread=30937
in the article, i refer to a couple of java world articles that are quite helpfull - one on JBossSX written by the main security developer. it is at: http://www.javaworld.com/javaworld/jw-08-2001/jw-0831-jaas.html