Attributes passed in HTTP Header but not received in my application!! Help

Hi all,
I am running Sun Directory Server 5.2, Access Manager 7.0 and Policy Agent 2.1 on an IBM Websphere 5.0 web server.
I am using a "shared" authorization model where I am using the AM only for the authentication part.
The way my application is structured, it is supposed to receive certain attributes from the LDAP and then based on these attributes the application does the authorization.
I am trying to receive the values using
request.getHeader("app_variable1").
However, sometimes the attribute picks the value and at other times it becomes null. It is not working consistently.
I have done the necessary changes required in the amAgent.properties file:
1. I have disabled the agent realm in websphere
2. com.sun.am.policy.amFilter.mode = SSO_ONLY
com.sun.am.policy.agents.do_sso_only = true
3. com.sun.am.policy.amFilter.ldapattribute.mode = HEADER
4.
com.sun.am.policy.amFilter.ldapattribute.map[attribute1]=app_variable1
com.sun.am.policy.amFilter.ldapattribute.map[attribute2]=app_variable2
// where attribute1 is an existing attribute in the LDAP
// where app_variable1 is the variable name which is mapped to the ldap attribute for getting the value in my application
// request.getHeader("app_variable1")
The values appear on the index.jsp page when I getHeader() there, but as soon as I forward to the Servlet which does the authorization, it behaves erraticaly - sometimes system.out.log has a "null" value for the attributes and at other times it gets the values and works fine.
Can somebody PLEASE tell me what is going on? I have tried out everything but just cant break through this one.
ANY help would be really appreciated....
Thanks...
Note: I also tried using cookies for passing values, and they work absolutely fine - consistently, but cookies are disabled in many browsers and hence carry a disadvantage. I HAVE to use headers - which are not giving the value consistently
--------

Bernhard:
Actually the headers are not set to null. I have an intermediate index.jsp page which is the first page that is redirected to by the AM - it is this page which calls my LoginServlet.
The value appears consistently on this index.jsp page but after it is forwarded to the LoginServlet it starts behaving inconsistently. I check the system.out log in my websphere /logs folder and that tells me that LoginServlet does not consistenly get these values from the header.
The wierd part is that if I use cookies or attributes, it works perfectly - each time every time. However, only in the case of headers (which is the method i am required to do) it behaves inconsistently.
ANY feedback/help on this would be really appreciated bern.. thanks..
~saahil

Similar Messages

  • Can send but not receive email

    I have contacted my ISP and confirmed my password and settings. I can log on and send but not receive. The emails are on the server. This problem started after I installed the latest apple security update. The isp tech felt everything was ok there and that the problem was due to the security update blocking incoming mail.
    Any ideas on how to fix this?
    Henery
    powerbook15   Mac OS X (10.3.9)   mail version 1.3.11 (v622/624)

    Thanks, Dave!
    I had the same problem. Could send but not receive, on three email accounts all of which were on the same server. The other four accounts on two different serves worked fine. This was a sudden change and I had not changed any mail prefs for several weeks or anything on the server end in months. I spent 3.5 hours on this this evening, excahnging emails with customer suppert at the server (using the other accounts of course), going through the complicated webstie to check the server configuration, checking the prefs in mail over and over and over, setting up the email on another computer to discover it worked, throwing everything realted to these three accounts out of keychain thinking maybe it had saved an old password.
    Came in here to post a plea for help and read your message. The offline bits were set. And the list of accounts under the IN heading had been collapsed (I generally have it open, don't know how it was collapsed) so that I couldn't see the obvious offline indicator. !!!
    Thanks again! Where were you 3.5 hours ago?
    Bob H

  • Using osx 10.7.5 can send but not receive emails. Mail server support rep tried everything

    Using iMac with OSX 10.7.5. Can send but not receive emails. No problem with internet account. Server rep tried everything and suggested perhaps a corrupted file in the op syst. Any ideas?

    You may have a corrupt preference. Mail - Preferences - Accounts - click the offending account and re-enter all prefereneces. Also you can use Apple's OS X Mail: Troubleshooting sending and receiving email messages located at:
    http://support.apple.com/kb/ts3276

  • Account password reset sent but not received by Outlook.

    I have requested a password reset, went through the process and had success at Apples end. Email was sent but not received by the Outlook account email I have been using for years. Outlook is still working fine. Nothing in Junk folder and have added the apple email to contacts (from last reset).
    Any ideas?

    Contact Apple for assistance resetting the password, either by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password, or by contacting the Apple account security team: http://support.apple.com/kb/HT5699.

  • Why can I send  but not receive them?

    Why can I send  but not receive them?

    Macrumors posted a solution for this.  I used it and it seems to have worked for me.
    Here's what they said:
    1. Turn off iMessage in Settings > Messages
    2. Reset networking settings in Settings > General > Reset
    3. Reenable iMessage in Settings > Messages
    Source:
    http://www.macrumors.com/2013/09/30/resetting-network-settings-may-fix-imessages -not-working-in-ios-7/

  • E6 (Belle) - Phone can sent but not receive emails

    Hello,
    I have set up a 2nd mailbox. The first mailbox functions fine. But with the second mailbox I can send, but not receive emails.
    Has anybody an idea how to solve that?
    Many thanks

    One more try.   The problem here is that I don't have hands-on experience with Belle.  Some backtracking...  I assume that
    1) Your firmware is up to date.
    2) Even manually syncing email doesn't work.
    3) You are not seeing any error messages that would help us track down the problem.
    I did a web search, and found other Belle users complaining about Gmail support, but mostly that push doesn't work reliably.  Manually syncing (or polling every X minutes) still does.  It's a long thread, but you might want to read http://discussions.nokia.com/t5/Messaging-Email-Browsing-and/E-mail-doesn-t-sync-automatically-after... in case any comments help you.
    If none of that helps, try enabling logging.  Within Nokia Email, I have a logging option under Settings -> Global Settings -> Log Output.  It writes at least two files to Phone Memory -> Logs.  In my case, one file logged only GUI calls...and so was useless, and the other file was always empty.  (A third file applied only to Mail For Exchange.)  But give it a try and check the files later for references to Gmail or IMAP.  Read them from a computer if that helps, and then post any relevant portions here.  Also turn off logging when you're finished.
    Again, good luck!

  • How to track materials shipped by the Vendor but not received

    Hi,
    Can anyone explain how to track materials shipped by the Vendor but not received at the customer plant?
    Thanks in advance

    You can use confirmation control in PO for tracking
    1. OMGZ to Configure Confirmation control.
        Here  you can specify the order in which you expect confirmations from your vendors.
    2. MK02 - to assign Confirmation Control to Vendor in Purchasing View.
    3. To view acknowledgments that have been received,
        in PO choose Item --> Confirmations --> Overview
    Check this out-
    http://www.sap-img.com/materials/explain-about-the-po-confirmation-control-key-in-detail.htm

  • Iphone 5 Picture Messages Sent But Not received

    My iphone 5 will send picture messages and say delivered  (iMessages) but not received by that person. The person will only get the picture if it was through SMS. I need help on fixing this ASAP

    Hello Dom_Guy,
    Thank you for the details of the issue you are experiencing with iMessage.  I recommend the following steps for the issue you described:
    To resolve issues with sending and receiving iMessages, follow these steps first
    Check iMessage system status for current service issues.
    Go to Settings > Messages > Send & Receive and make sure that you have registered iMessage with your phone number or Apple ID and that you have selected iMessage for use. Learn more abouttroubleshooting iMessage registration if the phone number or Apple ID isn't available for use.
    Open Safari and navigate to www.apple.com to verify data connectivity. Learn more about troubleshootingcellular data or a Wi-Fi connection if a data connection isn't available.
    iMessage over cellular data might not be available while on a call. Only 3G and faster GSM networks support simultaneous data and voice calls. Learn more about which network your phone supports. Go to Settings > Wi-Fi and turn Wi-Fi on to use iMessage while on a call if your network doesn't support simultaneous data and voice calls.
    Restart your device.
    Tap Settings > General > Reset > Reset Network Settings on your iPhone.
    If you are still unable to send or receive an iMessage, follow these steps
    Make sure that the contact trying to message you isn't blocked in Settings > Messages > Blocked.
    Verify that the contact you are attempting to send a message to is registered with iMessage.
    If the issue occurs with a specific contact or contacts, back up orforward important messages and delete your current messaging threads with the contact. Create a new message to the contact and try again.
    If the issue occurs with a specific contact or contacts, delete and re-create the contact in the Contacts application. Create a new message to the newly created contact and try again.
    Back up and restore your device as new.
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • HT1430 hey, I just reset my Apple ID and suddenly much of my Iphone text history disappeared.  and I can send texts, but not receive any.  what do I do?  is this related to AppleID, or is the text issue from something else?  thx!

    hey, I just reset my Apple ID and suddenly much of my Iphone text history disappeared.  and I can send texts, but not receive any.  what do I do?  is this related to AppleID, or is the text issue from something else?  thx!

    Hi blyther,
    Thanks for using Apple Support Communities.  If you're unable to receive texts, see this article for troubleshooting steps:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Cheers,
    - Ari

  • 3rd gen iPod Nano will not sync with latest version of iTunes. It passes the connectivity test but not the sync test under diagnostics.  Worked fine on old Windows 7 laptop but not new one.  From Control Panel it shows up as an Apple iPod USB Device...

    3rd gen iPod Nano will not sync with latest version of iTunes on new laptop. It passes the connectivity test but not the sync test under diagnostics.  Worked fine on old Windows 7 laptop but not new one.  From Control Panel it shows up as an Apple iPod USB Device...

    Never mind, I think. I think I figured it out. There was 1 song (out of > 900!) that somehow had been purchased with the other ID - I have no idea how. Once I deleted that song, it stopped asking.
    There may be something with the newest iTunes version too. I didn't think in older versions that the "On this iPod" list of songs was greyed out. But at least it syncs ok.

  • I can send but not receive email

    Hello All. I know this is a highly posted topic but I cannot find a solution. Any help is greatly appreciated.
    Basic Problem- I can send but not receive email.
    My ISP is. Yahoo SBC Global
    I have a 3rd party email provider: 1and1.com
    I have set my preferences according to the specifications of 1and1.com
    The error I get is this: The server error encountered was: The attempt to read data from the server "pop.1and.com" failed.
    I have a Macbook Pro, running 10.4.9. My account with the 3rd party email provider is new and only has 1 or two emails in the account. I know this because I can log on via the internet and use their website to check the emails in the inbox. So the "email" address is working. I just can't get it to forward to my laptop.
    I'm wondering if it has something to do with port 110 being blocked by my ISP. But I really don't think they are blocking that port. Due to the fact that my previous computer was a dell, and I used a similar 3rd party provider to email, the account used port 110 and things worked fine.
    Thanks to all.

    Ok. I've got it working.
    All I did was delete my account information from the preferences. Before, I was editing it.
    I entered a completely new POP account and it started working. I have a hard time believing that I entered information incorrectly prior to this because I checked it, rechecked it had a friend check it and it all looked OK. I was copy and pasting information anyway.
    However, once I deleted and re- entered a brand new account, it worked fine.
    Ernie, thanks for replying to my emails! I appreciate it.
    -Fraky

  • Hi, I have had an LG Octane for 4 years and loved it. I used it for email, surfing the web and facebook. But 6 weeks ago I stopped getting text messages, I could send but not receive.  I was told it was just worn out.  So I ordered another Octane and it w

    Hi, I have had an LG Octane for 4 years and loved it. I used it for email, surfing the web and facebook. But 6 weeks ago I stopped getting text messages, I could send but not receive.  I was told it was just worn out.  So I ordered another Octane from ebay, and it wouldn't connect to the internet. I was told by Verizon that the software had been changed.  So I ordered a NEW in Box Octane and I am having trouble with that too. Bing won't work, nothing will work that will enable me to download Verizon Opera mini that still works on my old phone. I have a smart phone with another number but I LOVE the Octane for daily use. Why will my old Octane work but I can't get a NEW one to.  Verizon guys are stumped too:( Please help!!  Thanks!

    Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
    I suggest that no response is made to this duplicate thread. 

  • I upgraded to lion today and just realized I am not receiving any mail. I can send out but not receive. i'm using a POP Road Runner account. Any help appreciated.

    I just upgraded to Lion today and realized I'm not receiving any mail. I can send out but not receive. I am using a POP server Road Runner acct. Any help would be appreciated.

    Try Mail->Window->Connection Doctor.  If there is a problem reported, try:
    Open Mail->Preferences and check your settings.
    If you still have a problem, Copy your settings (screen capture ⇧⌘4), delete account, and re-setup account

  • Gif is animated in Sent folder but not received by others as animated

    I've always used Entourage but would like to use Mail if only because it will send animated gifs. I sent one to myself at another (not .mac) address and received it in Entourage but it's quite different from what I sent. gif isn't animated and format is different (text was centered when sent but not received as such). Can anyone help me?

    All,
    Thanks for your reply. Worked with Basis as I do not have access to SOST/SCOT in production environment.
    @Abdullah: SCOT is correct. For all the e-mail messages the status is green. (Successfully Sent)
    @Rick: This is a custom application which triggers workflow. I can see the emails in SOST with status as successful.
    @Anjan: No emails in junk folder as well.
    @Swadhin: If we send a test email from SOST, it works fine. Me too suspecting the issue with user id. Working on it.
    @Rahul: Yes. Some users received the emails. Also email is maintained for WF-BATCH user.
    @Mike: Tried testing test email and it worked fine. No filters in SCOT. Exploring more options with basis/security.
    - Omkar

  • How to show attributes only in query panel but not in Add fields.

    Hi,
    Jdev - 11.1.1.7.0
    I have a requirement where I need to show attribute only in search panel but not in Add Fields list which is available in advanced section.
    Thanks for your time and help.
    Regards,
    Dileep.

    Hi,
    Is it really possible implement this kind of scenario, I could not find any property to disable the attribute only 'Add Fields' but not in query panel.
    Please some one confirm me this behavior.
    Thanks,
    Dileep.

Maybe you are looking for

  • Batch change to forms source code in 10g

    Hi, this may seem like a strange request but here goes. I am currently looking at upgrading my forms from 6i to 10g. I have a couple of hundred forms in all and many of them use the HOST command to create word files on the client. For this to work in

  • Any VI's capable of interpolating or fitting a curve with polar coordinates

    Hi, I have split a set of 3D data representing a human torso into many 2D planes and what i want to do run an interpolation on all of the points that fall within each of the planes in order to interpolate the entire torso. The problem is that for eac

  • Select price list in BOM.

    I understand that the Inventory Audit Report updates the Last Evaluated Price, then Why should We select manually the price list (Last Evaluated Price) again to update the Unit Price, inside Bill Of Material window?. The detail is: if We have 100 bil

  • Nokia suite 3.3.89 crashes as soon as try to do an...

    I have installed Nokia suite 3.3.89 (Win7 64bit PC) and connected my E6, logged into Nokia account but as soon as I try to do anything (eg clicked on map icon) Nokia suite produces error message that it has stopped working - windows then just shuts N

  • T61 Window 7 don't start without power cable

    I have T61 think pad with windows 7 64 bits and windows don't start with the battery only but they start when the electrical cable is plugged.  It's very strange, please help me.