Username not showing up in access log for authenticated users

I'm using form-based authentication in a Java web application on Sun One Web Server v6.1 to restrict access to authenticated users. However, even after the users authenticate and access the application, the username field in the access log is showing them as anonymous.
request.getRemoteUser() is reporting the correct username, so it just seems to be the access log that is in error. Right now it is set to the default but changing formats to custom doesn't seem to help in displaying the username.
Here's an excerpt from the access log:
// anonymous access attempt, redirects to login page...
10.100.168.110 - - [01/May/2006:14:34:42 -0400] "GET /profile/index.jsp HTTP/1.1" 302 0
10.100.168.110 - - [01/May/2006:14:34:42 -0400] "GET /profile/login.jsp HTTP/1.1" 200 3355
10.100.168.110 - - [01/May/2006:14:34:47 -0400] "POST /profile/j_security_check HTTP/1.1" 302 0
// at this point they are logged in and their username should be reflected in the access log, but is not:
10.100.168.110 - - [01/May/2006:14:34:47 -0400] "GET /profile/index.jsp HTTP/1.1" 200 3532 And the relevant code from the web application's web.xml:
<security-constraint>
    <web-resource-collection>
      <web-resource-name>AllFiles</web-resource-name>
      <description>
                 Restricts anonymous access.
              </description>
      <url-pattern>/*</url-pattern>
      <http-method>POST</http-method>
      <http-method>GET</http-method>
    </web-resource-collection>
    <auth-constraint>
      <description>
               Authenticated Users
              </description>
      <role-name>user</role-name>
    </auth-constraint>
  </security-constraint>I've searched the forums and the manuals but can't see anything showing that the access log's username field doesn't work with form-based authentication. Can anyone shed some light on this?

Some background:
The Java Servlet container has its own authentication infrastructure (which is what you configure in web.xml) which is separate from the non-Java authentication infrastructure (ACLs, etc.). If you set up authentication via ACLs the resulting user identity can (though you may configure it not to) propagate to the Java Servlet container such that request.getRemoteUser() will return it, even though no web.xml-driven authentication occurred. The coverse is not true, however: if you authenticate via a Java Realm, based on web.xml configuration, that user identity is not available to non-Java code.
(Your web.xml snippet doesn't show you using FORM auth - but it doesn't matter, the explanation above applies in any case.)
That is why the log file (generated from non-Java code) doesn't have access to that user. It probably should, but there's no config option today for you to make that happen.
If you're using BASIC auth you may consider moving the authentication configuration from web.xml to ACLs as a possible workaround. It will then show up in the access logs.
If you prefer web.xml-based authentication, consider the <SECURITY audit="true"> option in server.xml. It won't be in the access log but you'll have an audit trail of authentications, which may help.

Similar Messages

  • Authenticated User not showing up in access log

    Hello all,
    I am trying to get authenticated users to show up in the access log of SunOne Web Server 6.1 SP4 and it doesn't work. It is a default paramter to show up in the access log but doesn't show in the log. In fact, when I set the log to only show the authenticated user in the log, the log is empty and only shows dashes. As you can in the part of the log file below, after the IP address the log should show the authenticated user but doesn't
    Any help? Do I need to modify something else in a configuration file?
    Thanks
    Richard
    10.64.8.62 - - [15/Jul/2007:00:42:28 +0200] "GET / HTTP/1.1" 200 202
    10.64.8.62 - - [15/Jul/2007:00:43:43 +0200] "GET / HTTP/1.1" 200 202
    10.64.8.62 - - [15/Jul/2007:00:44:58 +0200] "GET / HTTP/1.1" 200 202
    10.64.8.62 - - [15/Jul/2007:00:46:14 +0200] "GET / HTTP/1.1" 200 202
    10.64.8.62 - - [15/Jul/2007:00:47:29 +0200] "GET / HTTP/1.1" 200 202
    10.64.8.62 - - [15/Jul/2007:00:48:44 +0200] "GET / HTTP/1.1" 200 202
    10.64.8.62 - - [15/Jul/2007:00:49:59 +0200] "GET / HTTP/1.1" 200 202
    10.65.1.63 - - [15/Jul/2007:00:51:14 +0200] "GET /Windchill/ HTTP/1.1" 200 402
    10.65.1.63 - - [15/Jul/2007:00:51:15 +0200] "GET /Windchill/wtcore/js/com/ptc/core/ca/web/misc/content.js HTTP/1.1" 200 4132
    10.65.1.63 - - [15/Jul/2007:00:51:15 +0200] "GET /Windchill/netmarkets/images/cut.gif HTTP/1.1" 200 104
    10.65.1.63 - - [15/Jul/2007:00:51:15 +0200] "GET /Windchill/netmarkets/images/newdoc.gif HTTP/1.1" 200 215
    10.65.1.63 - - [15/Jul/2007:00:51:15 +0200] "GET /Windchill/netmarkets/images/details.gif HTTP/1.1" 200 214
    10.65.1.63 - - [15/Jul/2007:00:51:14 +0200] "GET /Windchill HTTP/1.1" 302 0
    10.65.1.63 - - [15/Jul/2007:00:51:15 +0200] "GET /Windchill/netmarkets/javascript/util/calendar.js HTTP/1.1" 200 29580
    10.65.1.63 - - [15/Jul/2007:00:51:15 +0200] "GET /Windchill/netmarkets/images/contract_comp.gif HTTP/1.1" 200 79
    10.65.1.63 - - [15/Jul/2007:00:51:15 +0200] "GET /Windchill/netmarkets/images/newfoldertl.gif HTTP/1.1" 200 221
    10.65.1.63 - - [15/Jul/2007:00:51:15 +0200] "GET /Windchill/netmarkets/images/ptclogo.gif HTTP/1.1" 200 1284
    10.64.8.62 - - [15/Jul/2007:00:51:14 +0200] "GET / HTTP/1.1" 200 202

    You didn't say how the server is authenticating the user. Is it succesful? ACLs or Java?
    6.1sp4 is obsolete, update to the latest 6.1 service pack first. If you're using Java, I believe there was a bug years ago that was along the lines of your description. Update to the latest 6.1 service pack and if that doesn't solve the problem, provide more details on how the authentication is configured.

  • Equipment mailbox not showing partial days on calendar for certain user (in month view).

    We have one user that is having a problem with viewing Equipment Mailboxes.
    We are running Exchange 2010 version 14.02.0328.009. Client machine is running Outlook 2010 x86.
    The mailbox is a check-out vehicle that he and one other person manage. When someone sends a request to the van, it books it for that time, then doesn't allow others to book it for that same time as expected. However, some users don't like to do their own
    booking so they have him do it for them. Several times now he has went out on the calendar (actually 3 different vans, all respond the same way) and booked a van on a day that looked available to him, only to find out on that day that two different people
    show up expecting that same van. One person booked it on their own, and he booked it again. It never gave a prompt to disallow him or tell him it was taken from the attendant. However, for the other guy that manages the mailboxes it looks just fine, for me,
    for many other users I've compared with, it looks and responds as it should.
    I have checked the settings on the equipment mailboxes as well as compared his Exchange account with the other person who is working as expected, they are identical. The thing that I've found is that if someone books a van for an 'all day' event, he sees
    it just fine. If they set it up for a partial day, it never shows to him in month view.
    Looking at the calendar permissions for the mailbox both of the people have equal rights. I tried setting this person to owner to see if it helped, to no avail. I also tried setting the "Show As:" to free, busy, tentative, out of office, all respond
    the same way.
    It seems to show up when he does a schedule view, but from a month view, nothing shows and it allows him to book the van. For everyone else that I've tested, it responds as expected.
    I have deleted and recreated his profile on his local machine, and he even recently got a whole new desktop so it shouldn't be anything local (has been going on for many weeks), but I honestly have no idea why it's doing it. Any suggestions from the gurus
    on here would be appreciated. Thanks!

    Hi,
    Since the issue only happens when this specific user view the equipment mailbox's calendar in Outlook monthly view, please access this user's mailbox in OWA and view the equipment maibox's calendar and send test meeting requests to have a try.
    If the issue also happens in OWA, please run the following cmdlet to check the equipment mailbox calendar configuration:
    Get-CalendarProcessing equipmentmailbox | fl
    Regards,
    Winnie Liang
    TechNet Community Support

  • I imported some 24P HD videos from my DSLR to Aperture but these videos do not show up in iMovie '09 for editing purposes. Although my previous 24P HD Videos from iPhoto '09 show up. Why can't I access these videos stored in Aperture library?

    I imported some 24P HD videos from my DSLR to Aperture but these videos do not show up in iMovie '09 for editing purposes. Although my previous 24P HD Videos from iPhoto '09 show up. Why can't I access these videos stored in Aperture library? I assumed that like  the videos in iPhoto, I would be able to access the videos in Aperture through iMovie. Come on Apple! I am starting to get frustrated with your products here. And this is saying a lot when I have been using and loving apple products for the last 4 years.

    Hi. My camera is a Canon 600D. And yes my videos are stored in the Aperture library and they are not referenced. Even then I tried to select all the videos in Aperture and clicked 'consolidate masters' and there was a messge that said all 'none of the files are referenced',... so they didn't need consolidating.
    I also tried preferences> export> external video editor > choose > iMovie. And then right click on the video to edit with imovie. Even then the video didn't show up in iMovie. It seems like the only option for me is to import the videos directly to iMovie which means there will be two versions of the same file stored in my computer eating up space.
    APPLE. What are you doing?

  • Why will all the phone numbers on my phone not show up when I log into iCloud on my computer?

    Why will all the phone numbers on my phone not show up when I log into iCloud on my home computer?

    Hello tamivw,
    I read your post and I have linked to an article that will instruct you on how to access your iCloud contacts on a computer:
    This article is for Windows:
    iCloud Control Panel 3.1 for Windows
    http://support.apple.com/kb/DL1455
    This article will help you access the iCloud preferences where you can enable contact syncing:
    iCloud: Open iCloud preferences
    http://support.apple.com/kb/PH12802
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • My G Drive will not show up on my desktop for use. It did yesterday. It is not full and currently the light turns on and seems to be running but will not show up on my desktop. What can I do?

    My G Drive will not show up on my desktop for use. It did yesterday. It is not full and currently the light turns on and seems to be running but will not show up on my desktop. What can I do?

    1. verify on another Mac first. and another port.
    2. very likely dead SATA card
    read about it here:
    Your dead external hard drive is likely fine! Great hope for your 'faulty' external HD

  • I have just downloaded a free app and there is no icon and it will not open from the list even tho it appears to have downloaded and the "open" button is available.  Does not show up when I search for it.  Plenty of memory . . .

    I Have an iPad mini running iOS 7.1.2,  I downloaded a new app and it's icon does not appear anywhere ( have ~ 180 apps so not at limit) and it won't open from the purchased apps list.  It does not show up when I search for it so can't open t that way either.  It doesn't require iOS 8.  Can't delete and reinstall, cause not icon.  This is not a normal "app won't open" question.  it doesn't start the. Stop it just doesn't seem to exist.  Any help is appreciated

    Hello Chelleuri,
    Thank you for using Apple Support Communities. 
    The following article provides information to trroublehshoot issues with installed apps, including not opening.
    iOS: An app you installed unexpectedly quits, stops responding, or won’t open - Apple Support
    Regards,
    Jeff D. 

  • Custom Inserted HTTP Header not showing up in Iplanet Logs

    ALL:
    I have some iPlanet Enterprise/6.0 web servers sitting behind a LoadBalancer. The LoadBalancer is setup in an 'one-armed mode', and takes a client HTTP request passes it onto the server, but during this process, changes the client source IP to that of local static IP that the LoadBalancer has. Due to our setup we cannot change this.
    By changing the client source IP to a local address, we have lost any useful user session tracking that was done by source IP.
    To get around this, I have the LoadBalancer inserting an HTTP header with the client real source IP. Reading the NSAPI Programmer's Guide (Table 7-1 "http://docs.sun.com/source/816-5686-10/07_magnu.htm"), there is an option "%Req->headers.headername%" that can be used with 'flex-int' to log any header value.
    My output from snoop looks as follows:
    HTTP: ----- HyperText Transfer Protocol -----
    HTTP:
    HTTP: GET /plugin.do HTTP/1.1
    HTTP: OrigClientAddr:10.5.4.28
    HTTP: Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
    HTTP: Accept-Language: en-us
    HTTP: Accept-Encoding: gzip, deflate
    HTTP: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
    HTTP:
    I have set the value to "%Req->headers.OrigClientAddr%" and it still does not show up in the log file. Any clues?
    Works fine in Apache with:
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{OrigClientAddr}i\" \"%{User-Agent}i\"" headerinsert
    CustomLog logs/access_log headerinsert

    Always nice to find resolution to one's own question.
    Fix was to change the header value to all lower case.
    From:
    "%Req->headers.OrigClientAddr%"
    To:
    "%Req->headers.origclientaddr%"

  • Dropbox does not show up as an option for "Save As" as OneDrive does (came preinstalled that way).

    Dropbox does not show up as an option for "Save As" as OneDrive does (came preinstalled that way).  Dropbox is installed but I had to use Selective Sync since the Stream only comes with a 30GB drive and my Dropbox account is 1TB.

    Hi @gatesoui ,
    Thank you for visiting the HP Support Forums and Welcome. I have looked into your issue about your HP Stream Notebook and issue with DropBox. Here is the support site for Dropbox.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Error: Could not find compiled resource bundle 'logging' for locale 'fr_FR'

    Hello
    I'm developping a mobile application based on Flex  4.6 + Adobe AIR 3.5
    There is no error when compiling, but when the application starts it crashes whith this error message:
    Error: Could not find compiled resource bundle 'logging' for locale 'fr_FR'.
      at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\dev\4.y\frameworks\p rojects\framework\src\mx\resources\ResourceManagerImpl.as:392]
      at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\dev\4.y\frameworks\ projects\framework\src\mx\resources\ResourceManagerImpl.as:306]
      at mx.resources::ResourceManagerImpl/processInfo()[E:\dev\4.y\frameworks\projects\framework\ src\mx\resources\ResourceManagerImpl.as:450]
      at mx.resources::ResourceManagerImpl()[E:\dev\4.y\frameworks\projects\framework\src\mx\resou rces\ResourceManagerImpl.as:133]
      at mx.resources::ResourceManager$/getInstance()[E:\dev\4.y\frameworks\projects\framework\src \mx\resources\ResourceManager.as:117]
      at mx.styles::StyleManagerImpl()[E:\dev\4.y\frameworks\projects\framework\src\mx\styles\Styl eManagerImpl.as:380]
      at _ASMagnetoFute_iOS_FlexInit$/init()
      at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:2815]
      at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:2723]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.preloaders::Preloader/timerHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\p reloaders\Preloader.as:542]
      at flash.utils::Timer/_timerDispatch()
      at flash.utils::Timer/tick()
    The application is in french, both for iOS and Android.
    It is split in several libs, an application for iOS and another one for android.
    I use the same SDK for another mobile application without any problem -but it does not use the mx.logging package.
    I tried many things, like the solution described in http://forums.adobe.com/thread/758619, but it did not solve the problem. After listing the bundles used I added
    -include-resource-bundles=MagnetoFute,collections,components,core,effects,fiber,layout,log ging,messaging,rpc,serializer,skins,sparkEffects,styles,textLayout,utils,validators
    to my compiler arguments.
    Help would be greatly appreciated.

    I don't know if Adobe has an fr_FR locale for the logging bundle.  You can try creating your own to see if that is the only one missing or if there is a whole resource swc missing.

  • Appointments are showing off by one hour for Yahoo users

    Ok, I know there have been a few responses to this, but none seem to fit the exact issue I am having, so I'm going to ask again.
    I have two users in particular, one on Outlook 2010 and one on Outlook 2013. They have hosted Exchange, and the Exchange server is 2007. The Exchange host provider is located in the Central Time Zone. Computers for my users are all set to correctly to Eastern
    Time Zone. Windows 7 and 8.1 machines with all updates installed are what the users are using. I also logged into the hosted OWA option and set the time zone to EST there as well.
    When I send an invite from Outlook 2010 user to another Exchange server, meeting time in the email invite BEFORE accepting shows the correct time zone for that user, and stays correct when accepting. When I send an invite to Gmail, again, shows
    correct time before and after accepting. When I send to a Yahoo account, it shows the time one hour behind before accepting - essentially shows the CST time. Once I accept the meeting in Yahoo, it shows the correct time in the Yahoo calendar, but the email
    with the invite still shows the wrong time, one hour earlier. And obviously if the user doesn't accept the invite but just uses it as a guide, they will show up one hour earlier.
    Is this an issue for Yahoo, or Exchange 2007? It might be possible to move my client from Exchange 2007 to 2010 or 2013, but I don't want to do that if it won't fix the problem.

    Should be an issue with the time zone settings on all Outlook clients involved.
    Has Gmail/Yahoo account mentioned here been configured into Outlook clients?
    If you are using Outlook 2010 you need to use a time zone with the correct DST settings for your location. If your location does not observe DST, do not choose a time zone that does then deselect the option to automatically update for daylight saving time.
    You need to use a time zone that does not observe DST.
    http://www.slipstick.com/outlook/calendar/meeting-requests-and-appointments-are-off-by-one-hour/
    Kapaal

  • URGENT : How to retrieve Last Accessed Timestamp for all Users in GRC

    Dear Experts,
    Please help me with this urgent request. Appreciate your help in advance.
    My client is trying to understand the usage of the GRC application and would like to know information regarding the Last Accesse Time for all users who have logged into the Oracle's Governance, Risk and Compliance applcaition.
    Thank You,
    Rakesh

    If you still need the solution,
    Have a callback on OnSubtaskUpdated in your BPEL. This call back will be called for any updates in parallel approval pattern.
    Thanks
    --Sreeny                                                                                                                                                                                                                                                                                                                                                                           

  • Access Policy for Existing Users

    Hi,
    Here is the Scenario:
    1. We have AD resource object having "Allow Multiple" Unchecked
    2. We have Users who are already provisioned to AD
    We are trying to introduce Auto Provisioning into our system for AD, I know new users will be evaluated against Access policies and will be provisioned to the resource and hence groups management will be taken care automatically, Questions:
    1. If I disable resources (and not revoke) for these new users what will be the group membership status -will they be removed from group?
    2. How to pull existing users under this auto prov umbrella? My thoughts: by writing a custom scheduler that will check resource provisioned and make it as part of the group, but will resource be revoked automatically if group is removed for these users? If not what should be the approach for existing users?
    Thanks in advance

    I've completed a similar tasks using SQL.Take a look at the following table and you can do these tasks:
    UPP, UPD, USG, POG and AD group table 'UD_ADUSRC'

  • Access control for different user groups in APEX 4.0

    Hi guys,
    in Apex 4.0, is there any way to use the access control page to configure access control for different user groups?
    The access control page currently only has an access control list by users with 3 privileges namely, Administrator, Edit & View where Administrator has the highest access level & View the lowest. Therefore 1 user cannot have more than 1 different privilege, however if the user belongs to 2 or more different groups then we can control what access he can have in a more fine grained manner. We also want to have more than the 3 privileges given.
    Can we assign different groups to different users and let them have different privileges to be configured by page, region, process or item level?
    Now Apex will create 2 tables, Apex_Access_Control & Apex_Access_Setup to store the application access control mode & access control list. It will also create 3 authorization schemes "access control - administrator", "access control - edit" & "access control - view" based on the 2 tables.
    Does this mean we have to change the table structures & edit the authorization schemes to suit our usage? We are reluctant to do this because if we upgrade to a newer version of Apex then we would have to merge our pl/sql coding with Apex's updated code.
    How can we auto-configure more than the 3 authorization schemes in the access control page? Is there any way to achieve a finer grain of access control based on the current access control administration page given by Apex without writing it ourselves?
    We are afraid that we may have missed something on Apex access control & do not want to reinvent the wheel.

    Hi Errol,
    to build your own application authorization scheme around the security model supplied by Apex for administration of the Apex environment would be a bad idea.
    This was never intended for authorization scheme management in custom built Apex applications, it was solely intended to control access in the Apex environment overall. The API for it is not published, and making changes to it, such as adding more roles, would run the risk of breaking the overall Apex security model. It would not be supported by Oracle and Oracle would not guarantee the upwards compatibility of any changes you make in future versions of Apex.
    In short, you should follow Tyson's advice and build your own structure. As he indicated, there are plenty of examples around and provided your requirements are not too complicated, it will be relatively simple.
    Regards
    Andre

  • Activate Accessibility Features for all users?

    Is there a way to activate Accessibility Features for all users by editing a table on the Portal side?
    EP6 SP2 and NW04S.
    Thanks
    Jean Seguin

    Hi Jean,
    not that I would know of. But you can easily write a small portal component which sets the accessibility level of all users to your preferred level.
    The code snippet below should give you an idea of what I mean
    IUserFactory userFactory = UMFactory.getUserFactory();
    IUserSearchFilter filter = userFactoy.getUserSearchFilter();
    ISearchResult result = userFactory.searchUsers(filter);
    while (result.hasNext()){
      String userId = (String)result.next();
      IUserMaint user = userFactory.getMutableUser(userId);
      user.setAccessibilityLevel(IUser.SCREENREADER_ACCESSIBILITY_LEVEL);
      user.commit();
    Best regards,
    Martin

Maybe you are looking for

  • What is the best way to defrag my macbook?

    My 13" MacBook Pro (osx Lion) is lagging I do a lot of video editing and design work. Im looking for a way to clean up my computer, any suggetions?

  • Depreciation Expense For Related Project Assets

    Dear All, I have a question, Please help. How can I post depreciation expense from Oracle Asset to Oracle Project Costing for assets that working and assigned to Projects like equipments and Cars that assigned to project..... and we want to post thei

  • S_ALR_87012309 PROBLEM WITH OPENING BALANCES

    Dear Experts, My client having problem with opening balances in cash journal report that same showing in INR but not tallyed with carryforward balances. Cash journal carryforawd balances and FS10N balances are tallyed. So,please any suggestion to sol

  • Sap tables for material, plant & vendor combination

    Hi Experts, Can you pls help to get the sap application common tables to join material, plant & vendor in infoset ? Please answer any related to this. I want to create one info set using above 3 objects looking for tables Irfan.

  • WLC 5500 and ISE

    Hello, I am going to deploy Cisco ISE with WLC 5500. I have two kinds of users one for which I want to deploy just open access Wi-Fi network, without working with Cisco ISE and Second group of Users for which I want to deploy Cisco ISE services like