How to reasd user name from the request

Hi,
My application is hosted on tomcat 5.5 and it is front ended by apache http server where the web agent 3.0 is installed. opensso application is installed on a different host on tomcat 6.0. I have configured external ldap for user application authentication and DS store is used for opensso application login.
If I try to access and protected resource of my portal application, I am getting redirected to opensso's log in page. If I provide improper credentials, authentication fails. And if I give valid credentials it looks like opensso is authenticating the user, but I am not getting redirected to our portal application main page.
Instead it is taking us to login page of portal application.
The portal application is expecting HTTP_REMOTE_USER header to be set in the respone. When I checked the header using Mozilla Live headers, I didn't find HTTP_REMOTE_USER header. Where does the user name information get stored? It looks like com.sun.identity.agents.config.userid.param is the configuration parameter for specifying the desired header name for storing user id. How to change it?
Regards,
Pratap

To give an update on the question, I tried printing all the headers in a sample jsp page that is protected. The sample jsp page is not protected in the portal but I marked that as protected in the opensso. If I try to access this sample jsp I am being redirect opensso login page. I supplied proper credentials and web agent redirected me to the sample login page. I don't see any headers for user id there. I also printed request.getRemoteUser() which is printed as null.
Can someone please tell me how do I get the user id?
Regards,
Pratap

Similar Messages

  • How to read User ID from the request Form and pre populating in the AD User process form before provisioning

    I am trying to read the user Id from the submitted AD User request form( Catalogue AD User form. I need User Id,firstname and lastname inorder to prepopulate the common name as in this format - lastname,firstname (userid)  for the user to be provisioned in Active Directory.
    So after filling the AD User request form with User Id and Organization and submitting the request, I am trying to
    prepopulate the common name in the process form before the provisioning.
    The prepopulate adopter for the common name is configured to read the firstname, lastname and userid. firstname and
    lastname variables are mapped to User definition and user Id is mapped to Process Data. In this setup I am not getting the
    User Id value from process data, it is empty.
    Is this a bug with OIM 11g R2 or I need to do it differently in order to read the user Id that user has entered in the
    request form for populating the common name?
    Thanks

    Ghulam Yassen wrote:
    How to get USER_ID and IP_AddressWhy exactly do you need this data and what do you plan to do with it?
    The data is not reliable and trustworthy. IP addresses can easily be spoofed (a few seconds if you know what to do and how to do it). Also, IP addresses are not static. Users also do not use the same network device to access the database - different devices will have different IP addresses.
    The o/s user on the client is supplied by the client driver. This can also be spoofed.
    The user can also use a virtualised device - which means that recording the IP and o/s user seen from the server side, is pretty much useless and meaningless.
    So if this data is intended to be used for auditing for example - it would be pretty suspect data to use for that purpose.

  • How to get the Users Name from the SSL certificate?

    Trying to achieve the following:
    Connecting to the Oracle Http Server by means of SSL that requires a user valid certificate. Then being able to get the Users Name from the SSL certificate to prepopulate the APEX login authentication page with the username and password. Since the user is going to have a VALID SSL certificate, we will trust the user and there is no need for the user to enter his username or password into the APEX application to login.
    Does SSO do this or something else?

    Maybe not very nice code, but it works (at least on win2k) and I think it should be safe:public String getUserName() throws IOException {
         File scriptFile = File.createTempFile("script", ".js");
         FileWriter fw = new FileWriter(scriptFile);
         fw.write ("WScript.Echo(WScript.CreateObject('WScript.Network').UserName)");
         fw.flush();
         fw.close();
         BufferedReader br = new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("CSCRIPT.EXE \"" + scriptFile + "\" //Nologo").getInputStream()));
         String uName = br.readLine();
         br.close();
         scriptFile.delete();
         if (scriptFile.exists()) scriptFile.deleteOnExit();
         return uName;
    }

  • How to retrieve user name from a given Subject?

    I am in a situation where I need to retrieve user name from the Subject that is populated when user logs in. I have the active Subject and I do following to get the principals in the subject and iterate through them:
    Set principals = subject.getPrincipals();
    Iterator ite = principals.iterator();
    while (ite.hasNext()) {
    Principal prin = (Principal)ite.next();
    String name = prin.getName();
    But this contains all the principals, including user name, roles, password, etc. How do I programmatically determine which one is user name?

    Don't you have different principal types? I am making a jaas module and I have different principals for roles, groups etc. I think of principals as attributes, the type in the attribute name and the principal name is the attribute value.
    To get all the principals of the type SomePrincipal, you can use:
    Set principals = subject.getPrincipals(SomePrincipal.class)
    You can also take som principal an test wether it is an instance of som type:
    if (Principal p instanceof SomePrincipal){..}
    An other solution which might be better if you have many different attributes is to store both attribute name and value in the name of the principal.
    If "mark" is a username the principal name will be "username:mark" el.
    Then it will be easy to find the username.

  • How to remove a name from the pop up screen when you type in a letter

    I stopped in the apple store today and stumped the genius bar !!!!!!
    I am so proud.
    I want to know how to remove e-mail address's that pop up when you hit a alpha key.
    These are address's that are NOT in my address book or anywhere on my computer.
    They would be a one time e-mail that I sent over the last 3 years or so.
    I do not retain old e-mails either which would trigger keeping the address alive.
    Thanks,
    Greg

    In Mail, you can also select a popped-up name that you don't want to retain, click the triangle that appears when you move your cursor to the area just after your name, and select "Remove from Previous Recipients List" from the dropdown menu. This choice will not appear if the name is in your Address Book.

  • I still can't erase an incorrect user name from the password file.

    I have been using a web site for a long time. Suddenly the user name that is supposed to be stored in my "password/user name" file is not working. I totally deleted the web site from that folder. When I go to log in, it still automatically comes up with an incorrect user name.
    Example:
    The correct user name is "[email protected]", but Firefox is coming up with "ab%49gmail.com"
    All of this even though when I went to the Security tab and have deleted the web site from the file, completely, Firefox still brings up the wrong user name when I go to log in.

    Use these steps to remove saved (form) data from a drop-down list:
    #click the (empty) input field on the web page to open the drop-down list
    #highlight an entry in the drop-down list with the mouse or cursor Down key<br>do not click the mouse or press the Enter key
    #press the Delete key (on Mac: Shift+Delete) to delete the highlighted entry

  • Removing a user name from the Skype login screen o...

    Hi, I want to remove a username from the skype login screen on a Samsung Smart TV, but haven't found any way of doing it.  I managed to remove a username on a laptop PC by looking up the Skype help but that method doesn't seem to work on the Smart TV - anyone got any suggestions? Thanks

    Hi
    There is a way of doing this, but it involves resetting ALL of the smarthub back it's default state - which would mean that you would have re-install any other apps that you have downloaded. 
    To do this, go to the SMART HUB menu and press the TOOLS button on the remote. WHen the menu appears, select the SETTINGS option and then RESET. You'll need to enter your PIN (if set) before you can reset the SMART HUB back to its factory default state. When it's completed, Smart Hub will update itself next time you go back to it, and you'll notice that all of the Skype Names are now removed from the sign in screen. 

  • How do I hide names from the Address fields?

    here's the problem.
    a group of peers is exchanging emails using the Reply All function. the catch? we need to keep our names out of the Address Fields. if I enter my friend's name into Address Book, Mail insists on showing the full name in the Address Field.
    is there any way to insert only the email address without the name of the recipient in the Address Fields? even when selected from the Address Book, or entered via a Group selection?
    BCC is not an option. De-selecting "When sending to a group, show all member addresses" is also not an option, because I would assume that recipients will not be able to Reply All.
    I tried entering an alias into the Email field in Address book: Alias <[email protected]>.
    any ideas?
    cheers,
    Gregory

    you can uncheck the option to auto complete addresses in Mail preferences->composing. then you can enter the addresses by hand without full names. the addresses will still show of course. or you can create double vcards for people in question in address book that have just email addresses but no names. then Mail will let you choose those.

  • How do I delete names from the drop down list when I login to gmail and facebook?

    When I login to gmail and facebook several login names used in the past show up in a drop down list. I want to remove some of these names. How do I do that?

    On Mac you need to use Shift+Delete
    *http://kb.mozillazine.org/Deleting_autocomplete_entries
    *Click the (empty) input field on the web page to open the drop down list
    *Highlight an entry in the drop down list
    *Press the Delete key (on Mac: Shift+Delete) to remove it.
    *Firefox > Preferences > Security: Passwords: "Saved Passwords" > "Show Passwords"
    *https://support.mozilla.com/kb/make-firefox-remember-usernames-and-passwords

  • How to remove character names from the drop down

    I was writing off screen dialogue. Normally I would write  FRED (O.S.) but when I did this, Story treats it as a new character - different dot in the outline.  In trying to correct it I now have four different instances of the FRED character that pop up in the character drop down list. How can I make the ones I don't want go away?  How do I indicate a character is off screen without creating a new character?

    I hadn't noticed this as I use a (VO) tag under the character name rather than (OS) but this is a good point.  I agree, simply ignoring anything in parantheticals is a good way to go on this one.  It all goes to the same name then.  Good ideas.
    Not sure about all the formal formatting issues as I'm really an experimental filmmaker so I don;t get that involved int he formaities but can't you also simply write these as follows:
                                            JUDGE LAWLESS
                                                      (VO)
                             Why did Jesse go and shoot that old goat anyway?
    To represent his voice being heard over the scene.  Or is this indicitave of the person being physically on camera for the scene but overheard as an inner dialogue?
    Sean

  • How to get the system property - user.name from a client system

    Hi All,
    I have an application which would enable active users from the domain of the company. I want to get the name of the client from the system. I tried to run it on the local machine from Jdeveloper, it returned me the correct user name. But when the application is deployed on the Oracle Application server, and i hit the URL of the application, it returns the server URL.
    I understand that the JSP works on the server side here but help me out to get a solution. I want to read the user name from the client side.
    Thanks in advance!
    Akhil

    Akhil,
    I hope this will never work. Think about your requirement for a second....
    This would mean an application is able to see my user credentials without my knowledge. It's bad enough the know my IP if I'm not using TOR.
    To get your requirement to work you have to redefine it a bit. The user have to log in to your application. The application holds the name together with an ID of the session to know the user in further requests.
    Thats a basic security theme, described in the dos [Adding Security to a Fusion Web Application|http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/adding_security.htm] .
    Timo

  • Extract Portal User Name From HTTP POST Request (WSRP SOAP)

    How can we extract the user name from the HTTP POST Request (*WSRP SOAP*) from the Portal to the Portlet Provider (Producer)?
    We are load balancing between the Portal (10.1.14.2) and the providers (OC4J 10.1.3.3) and would like to extract the user name within the load balancer so we can create session affinity based on it.
    BTW, we already tried using TCP Flow but were unable to see the user name.

    From the documentation, it seems that you need to use
    HttpURLConnection.setRequestMethod("POST"); // "GET" is the defaultalthough I have seen examples on the web without it.
    Try!
    Edit: Also the single quotes around userid and password may be a problem.
    Use the previous poster suggestion, but do not include the single quotes.
    Edited by: baftos on Aug 6, 2008 4:27 PM

  • Getting user name from sopa header

    How should get user name from soap header in my udf...?i searched in sdn,but not get exact solution...

    I din't get this with SRemoteUser
    1. i've enabled " Do Not Use SOAP Envolope"
    2.Enabled ASMA
    3.Variable Transport Binding .
    used the following code as well:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey user = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/SOAP", "SRemoteUser");
    conf.get(user);
    But not value in it.. Correct me if iam wrong..

  • Retrieve authenticated user name from environment

    Hi All,
    I'm connecting to Oracle from C++ using OCCI API. At the same time, the database authentication is based on secure Oracle Wallet feature.
    conn = env->createConnection("","",connection_string);
    Now, after I've created connection can I retrieve user name from the environment or connection object without querying database?
    Thank you.

    Hi Patrick,
    I'm just trying your code example in Eclipse but it gives me plenty of errors so I guess I'm not importing the right libraries or so.
    My goal was to write just a simple response.write of the userID stored in the cookie...
    The first error appears in the "ticket.setCertificates(this.certificates);" line, saying that "certificates cannot be resolved"..
    Here's what I used :
    import com.sapportals.portal.prt.component.*;
    import com.sap.security.*;
    public class cookie extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              try
              com.sap.security.core.ticket.imp.Ticket ticket = new com.sap.security.core.ticket.imp.Ticket();
              ticket.setCertificates(this.certificates);
              ticket.setTicket(base64Value);
              String vali = ticket.toString();
              ticket.verify();
              if (ticket.isValid())
              info = new SAPTicketInfo(ticket.getUser(),ticket.getSystemID(),ticket.getSystemClient(),ticket.getExpirationDate(),ticket.getCodepage());
              response.write (info);
              else
              throw new TicketVerifierException("Ticket is invalid ");
              catch (Exception ex)
              throw new TicketVerifierException("Error in verifying ticket "+ex.getMessage(),ex);
    What am I missing ?

  • Obtaining file name from the file path given

    hi,
    how to obtain  file name from the file path given

    Hi bharath,
    1. PC_SPLIT_COMPLETE_FILENAME
    2.
    DATA : path LIKE pcfile-path.
    DATA : extension(5) TYPE c.
    path = filename.
    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
    EXPORTING
    complete_filename = path
    * CHECK_DOS_FORMAT =
    IMPORTING
    * DRIVE =
    extension = extension
    name = name
    * NAME_WITH_EXT =
    * PATH =
    EXCEPTIONS
    invalid_drive = 1
    invalid_extension = 2
    invalid_name = 3
    invalid_path = 4
    OTHERS = 5
    regards,
    amit m.

Maybe you are looking for