[jboss-dev-forums] [Design of JBoss Portal] - Automatically log someone in.

badock do-not-reply at jboss.com
Thu Dec 20 04:45:31 EST 2007


Hi, still on my SS0+Apache+Kerberos+JBossPortal problem.
I really feel like I am the only one writing on this forum :P

OK, so let's hear what's my new plan :
First of all, i have JBossPortal running behind an Apache.
That Apache authenticates users with Kerberos, and can store the login in the variable REMOTE_USER that is handed to JBoss.
Now, for identification, I use a LDAP and the jbossportal html form.
By modifying the login.jsp file, i can already fill the form with the login : 
<input text="text" name="j_username" value="<% out.print(request.getAttribute("REMOTE_USER")); %>" />
And i also fill in the password with a value that is the same for every user in the LDAP (no need to have different passwords, the authentication has been done with Kerberos).

Now i'd like the form to Submit itself, so the user doesn't have to click nor can he get the oportunity to change the j_username variable.

Do you have any idea how can i do that ? For instance with a javascript maybe ?
Or can i use the response.sendRedirect(request.getContextxPath() + "/some/path/"); ?

Thanks in advance.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114544#4114544

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114544



More information about the jboss-dev-forums mailing list