Solved

Configuring A Simple FORM BASED Authentication Login for JBoss

Posted on 2006-07-11
4
3,120 Views
Last Modified: 2013-11-12
Hi Experts Exchange Folks,

If we can answer this question - it will very likely be extremely useful to MANY others - so I am hoping you can help me - as well as anyone else who has had to try and get this situation to work.  After buying two large books, combing all over the JBoss, MyEclipse, XDoclet sites and asking Google... What I found was that there were TONS of pages with "you can initialize this", "you can specify that", "you can use this new, snazzy, additional interface", "you can design your own - here just read and digest these 25 pages...", and so on.  I spent the better part of the weekend trying to get the SIMPLEST FORM-BASED AUTHENTICATION to work and ended up rather frustrated due to the lack of a cohernet picture of the required pieces needed to solve the puzzle.  

Here's the scenario:

1) There's a web-client who wants to log into a JBoss hosted web-server. The challenge is for the JBoss application server to support a SIMPLE login page.  
2) The web-client will attempt to access a URL such as http://www.thatcoolsite.com/funstuff/main - where funstuff is a servlet that requires an authenticated login to be accessed and main is a place-holder page to be returned.  
3) There are files including web.xml, roles.properties, user.properties, login.jsp, loginerror.jsp, plus tidbits and mapping vectors all over the place which ALL have to be perfectly aligned and concurring or nothing works.  

My question is this:  What is the minimum set of particulars that will...

A) Redirect the initial 'main' page call to cause the 'login.jsp' page to be returned to the caller
B) Accept the incoming j_username and j_password elements to be passed to the j_security_check module
C) Allow for the correct recognition of an established User and Role for the incoming args
D) Finally... return some page that announces the login-procedure was successful or failed.  

I marked the question 'difficult' - because I am not sure anyone has the time to bother with it.  But I appreciate two things: 1) The ability to pose the question - which often helps me find an answer.  2) This site has a WEALTH of good information - and this is something on which I just happen to be stuck - but I look forward to studying other answers already derived for others.  

Thank you!
0
Comment
Question by:notarysojac
4 Comments
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 250 total points
ID: 17080782
0
 

Author Comment

by:notarysojac
ID: 17084499
Thanks for the quick and obviously helpful response.  

I dunno WHY the JBoss-wiki stuff did not appear for my search - but it was very helpful.  Also - the javaworld example looks like it may be very useful.  

Getting the JBoss example working is the first irder of business - the next step would be to upgrade to the javaworld-described approach as it is much closer to what would be the true, desired solution.

Getting "<security-domain>java:/jaas/other</security-domain>" into the jbossweb.xml file appears to be a sub-challenge without hand editing the file.  

I'll post a follow-up when and if I make some forward progress.  

Thank you!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Finite Automata 10 64
Send URL Shortcut by mail WITH CUSTOMIZED ICON 32 567
Java Generics - No way around all this duplicate code? 22 368
VB.Net Multithreading Assistance 2 195
Setting up SVN Server using Windows and Apache Purpose of the document:       This article will explain the process of how to configure SVN repository in a windows environment using APACHE web server. What is SVN? (http://subversion.tigris.org/) …
Before You Read The Article Please make sure you understand these two concepts: Variable Scope (http://www.php.net/manual/en/language.variables.scope.php) and Property Visibility (http://www.php.net/manual/en/language.oop5.visibility.php).  And to …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question