[jboss-dev-forums] [Design of JBoss Portal] - Re: JBossPortal, trusting Apache for authentication.

badock do-not-reply at jboss.com
Thu Nov 29 09:32:09 EST 2007


OK, i managed to pass the value REMOTE_USER from Apache to JBossPortal, 
actually, all i had to do was adding the line 
JkEnvVar REMOTE_USER
in /etc/httpd/conf/mod-jk.conf and restart apache.

To make sure JBoss was "seeing" this variable, i wrote a small portlet, and within the index.jsp file i wrote :

REMOTE_USER = <% out.print (request.getAttribute("REMOTE_USER")); %>
and it actually displays the kerberos-principal on the webpage : 
REMOTE_USER = myprincipal at REALM


So  now, i think i'm half way to victory...
All i have to do, is to make Jboss authenticate the user with this value REMOTE_USER i'm now sure it can see, and without questionning the 

So if you have any clue... feel free to tell me :)

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

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



More information about the jboss-dev-forums mailing list