Skip to Content
0
Jun 04, 2008 at 07:22 AM

SSO-- HEADER BASED AUTHENTICATION. PLZ HELP

82 Views

Hi All,

I am trying to configure SSO between Apache HTTP Web server and Portal. For thatu2026

I am following an approach likeu2026

In apache I will set the header and redirect it to a web module project. Where in webmodule project I am displaying the header, its value and then redirecting it to portal. In portal I configured login module stack for this web module project as shown in the SAP help

http://help.sap.com/saphelp_nw04/helpdata/en/68/5ddc40132a8531e10000000a1550b0/frameset.htm

I configured portal login module stack as shown in the above link and gave the header name as REMOTE_USER.

1) I added the following code in httpd.conf file of APACHE

RequestHeader add REMOTE_USER  j2ee_admin

// to set the header

ProxyPass    /webModule http://<servername>:50100/HeaderWebmodule/servlet/com.sap.header.HeaderVariable

//to redirect to web module. I tried with u201CRedirectu201D directive but I am not getting header value when I printed, so I am using u201CProxyPassu201D directive.

2) In my web module project (HeaderWebmoudle) I have created a servelt where I am printing all headers and also printing the value of REMOTE_USER. Its giving the correct values

Now I am redirecting it to portal as shown below

IUser user=	UMFactory.getAuthenticator().forceLoggedInUser(request,response);
		     if(user==null)
		     {
			   return;
		     }
           response.sendRedirect("/irj");

result of this is, its not logging into the portal, its just going till login page

I uncommented the redirecting code and wrote the code to display logged in user as

IUser user1= UMFactory.getAuthenticator().getLoggedInUser();
		     out.println("logged in user details are.....");
		     out.println(user1);

Its showing the user details. But value is not u201Cj2ee_adminu201D as I set previously. Its showing u201CJ2EE_GUESTu201D as Private id part: J2EE_GUEST

After reading this long story, Please tell me where the problem is? Why its not logging in to the portal? Why Header u201CREMOTE_USERu201D with value u201Cj2ee_adminu201D is not going to portal? Why some other userid u201CJ2EE_GUESTu201D is shown as logged in user?

PLZ help me out in this regard,

Thanks in advance

regards,

Pradeep

all helpful answers will be rewarded.