How to get the RACF user logged in tomcat

Issues and Questions related to running Apache Tomcat on z/OS
Post Reply
jmgonzalezm
Posts: 2
Joined: Tue Mar 31, 2009 4:20 am

How to get the RACF user logged in tomcat

Post by jmgonzalezm »

Dear support

We have configured tomcat 6 on our ZOS and enabled the SAF security using the documentation link "http://dovetail.com/docs/jzos/saf.html"

It works fine but We found a little problem, We aren't able to get the RACF user logged in tomcat through the REMOTE_USER.

Is there any way to get the RACF user logged in tomcat?.

is it saved in other variable, different to REMOTE_USER?

We are working with Tomcat standalone.

Thanks and best regards.

Jose M.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

I'm not sure exactly what you are trying to do. Can you be more specific?

There is an method "getRemoteUser()" that you should be able to use:

http://java.sun.com/j2ee/sdk_1.3/techdo ... quest.html

If you are using Tomcat standalone and are looking for a "REMOTE_USER" header on the request, then I wouldn't expect you to find one.
jmgonzalezm
Posts: 2
Joined: Tue Mar 31, 2009 4:20 am

Post by jmgonzalezm »

Thanks for your reply.

Unfortunately I am trying to get the remote_user with tomcat standalone.

Then, is there any varible that save the user logged in tomcat? or will I need to configure an Apache with tomcat to get it?

Best regards

Jose M.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

I'm still not sure what you are trying to do.

Is is this ?

httpServletRequest.getHeader("REMOTE_USER")

If not, can you post the code that is not working?


Have you tried this ?

httpServletRequset.getRemoteUser()
Post Reply