This content has been marked as final.
Show 2 replies
-
1. Re: how to skip login.jsp when using ldap
ian.ouzounov Jul 9, 2007 6:36 PM (in response to ian.ouzounov)to the above scenario I should add that,
I'm getting the username from the servlet request header
don't care for password, since the user has been authenticated before entering the portal.
thx -
2. Re: how to skip login.jsp when using ldap
bvogt Jul 11, 2007 7:23 AM (in response to ian.ouzounov)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