[jboss-user] [Beginner's Corner] - How to validate (j_sercurity_check) in JBOSS (Please help me)

Wolfgang Knauf do-not-reply at jboss.com
Thu Jun 10 08:12:48 EDT 2010


Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] replied to the discussion

"How to validate (j_sercurity_check) in JBOSS (Please help me)"

To view the discussion, visit: http://community.jboss.org/message/547344#547344

--------------------------------------------------------------
Hi,

in JBoss, you might use a similar approach. I JBoss, you don't configure "Realms" but a "JAAS security domain". This one in configured in "jboss-web.xml" (assuming that you use 5.0 or newer):



<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE jboss-web PUBLIC    "-//JBoss//DTD Web Application 5.0//EN"    "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd"><jboss-web>    <security-domain>mysecuritydomain</security-domain>    </jboss-web>



Then, you use either "login-config.xml" (pre-JBoss 5.1, see  http://community.jboss.org/wiki/DatabaseServerLoginModule http://community.jboss.org/wiki/DatabaseServerLoginModule ) or a "...-jboss-beans.xml" file (see  http://server.dzone.com/articles/security-features-jboss-510 http://server.dzone.com/articles/security-features-jboss-510 ) to configure a "Login Module" which performs database lookup.

The only problem left is  that you have to configure a new DataSource pointing to your oracle database and bind this DataSource to JNDI.

Hope this gives you something to start with.

Wolfgang

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/547344#547344]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100610/e4a18097/attachment-0001.html 


More information about the jboss-user mailing list