[JBoss Portal] - Automatically log someone in.
by badock
Hi, still on my SS0+Apache+Kerberos+JBossPortal problem.
OK, so let's hear what's my 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=4114624#4114624
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114624
18 years, 4 months
[JBoss Seam] - session / SFSB timouts
by threeps
Hi
I'm trying to get to the bottom of what exactly triggers timeouts in jboss/seam applications. More to the point i am trying to handle a timeout event such that my app doesn't freeze and become 'unclickable'.
I have tried altering the <session-timeout> element in web.xml, and this DOES seem to do something, ie my test bean will be destroyed after x minutes when this is set to x.
However, when i set <session-timeout> to 45 minutes, i still get some kind of timing out after around 10 minutes so i figure it must be something else.
I've next tried altering my 'ejb3-interceptors-aop.xml' file to change the 'idleTimeoutSeconds' parameter under simple.CachConfig (in 'Stateful Bean' domain). However, if i set this to say 1 minute, then set <session-timeout> to say 10 minutes, then bean is still not destroyed until the session expires, when surely the bean idleTimeoutSeconds should take precidence?
Further to this i've looked into altering 'standardjboss.xml', ie <max-bean-life> element. This doesn't seem to do much either.
Can anyone offer any assisstance, or point me in the direction of any info regarding seam timeout events and how to catch / manipulate them?
Thanks in advance
-Rich
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114618#4114618
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114618
18 years, 4 months