[jboss-user] [JBoss Portal] - Re: how to skip login.jsp when using ldap

bvogt do-not-reply at jboss.com
Wed Jul 11 07:23:39 EDT 2007


for portal 2.4 we needed the same...

One solution could be modifying: core/src/resources/portal-server-war/login.jsp

like:

<%
  |   final String userIDHeaderAttribute = "userID";
  |   String userIDHeaderValue = request.getHeader(userIDHeaderAttribute);
  |   
  |   if ((userIDHeaderValue != null) && (userIDHeaderValue.length() > 0))
  |   {
  | %>  
  | <body OnLoad="document.loginform.submit();">
  |    <B>Logging in...</B>
  |    <form method="post" action="<%= response.encodeURL("j_security_check") %>" name="loginform" id="loginForm" target="_top">
  |       <input type="hidden" name="j_username" value="<%= userIDHeaderValue %>"/>
  |       <input type="hidden" name="j_password" value=""/>
  |    </form>
  | </body>
  | <%
  |   }
  |   else
  |   {
  | 

and rebuild the portal.sar afterwards

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

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



More information about the jboss-user mailing list