RunAs and JAAS

If i try to call an PrivilegedAction i get an SecurityError: Invalid
Subject: principals=[....]
In an MessageBean in the onMessage()-Methode i do:
LoginContext lc = new LoginContext("myrealm",new
MyCallBackHandler(username,password))
lc.login();
Subject s = lc.getSubject();
weblogic.Security.SecurityRunAs(s,this); // this implements
PrivilegedAction
in the run()-Methode
i check the current-Subject/User
Subject cs=weblogic.security.Security.getCurrentSubject();
System.out.println("User:= "
+weblogic.security.SubjectUtils.getUsername(cs));
The System out prints the correct User!!!
After that an Exception occures:
Invalid Subject: principals=[....]

You need to sign the subject:
PrincipalValidator principalValidator =
new PrincipalValidatorImpl();
Set principals = subject.getPrincipals();
Iterator i = principals.iterator();
while(i.hasNext())
Principal principal = (Principal) i.next();
AccessController.doPrivileged(
PrivilegedActions.getSignPrincipalAction(
principalValidator, principal));
[email protected] wrote:
If i try to call an PrivilegedAction i get an SecurityError: Invalid
Subject: principals=[....]
In an MessageBean in the onMessage()-Methode i do:
LoginContext lc = new LoginContext("myrealm",new
MyCallBackHandler(username,password))
lc.login();
Subject s = lc.getSubject();
weblogic.Security.SecurityRunAs(s,this); // this implements
PrivilegedAction
in the run()-Methode
i check the current-Subject/User
Subject cs=weblogic.security.Security.getCurrentSubject();
System.out.println("User:= "
+weblogic.security.SubjectUtils.getUsername(cs));
The System out prints the correct User!!!
After that an Exception occures:
Invalid Subject: principals=[....]

Similar Messages

  • The weblogic.security.Security.runAs() and JAAS Subject

    Let say that I have Java client with some JAAS code that authenticates
    the user. The LoginContext generates a Subject containing the Principal
    name of the authenticated user, but also some private credentials that
    makes the Subject secure.
    Now I want to call an EJB on WLS.
    Having JNDI (EJB) code inside a PriviledgesAction and using the
    weblogic.security.Security.runAs() method, I assume that the Subject is
    sent over the wire with the EJB call. If not, please correct me.
    Question is: How does WLS authenticate this call? What modules are
    called? IdentityAsserter? LoginModule? Is the Subject simply assumed
    "valid"? Any documentation describing how this is done?
    /Bo

    Hi,
    Problem is solved, we also got security exception when we tried to call MBeans.For this to work we have to set
    -Dweblogic.disableMBeanAuthorization=true in weblogic startup script so that our application can access MBeans.
    Thanks
    girish

  • When I boot up my system and Firefox is not running, Firefox tells me I must update, but when it begins to do so, it tells me that the program is currently running and that I must turn it off before the update can proceed.

    Basically, I don't know any better way to turn it off than to try closing the program or rebooting the computer. Rebooting usually works, as in the following instance which happens occasionally: I close Firefox, move on to another task, and then try to open Firefox again and am told that Firefox is still running and that I must try to close it again or reboot. Trying to close it again is impossible because for all I can see, it is closed. So, I reboot and can then successfully start Firefox. That is a nuisance that I would like to remedy. I was hoping that the update of the program might resolve the problem, but I can't get the update to work, as explained above.

    Hello,
    I would like to strongly recommend that you update your version of Flash Player to our currently released version (17.0.0.169) and enable auto updates.  The version you are using is insecure and opening your computer (and all of your data) to being easily exploited by bad guys.
    As for the error you are receiving, this is most likely a restriction from the website.  Each developer is able to specify what the required minimum version of Flash and require their users to have at least that version installed.  The detection that is occuring and the message that you are seeing on the website isn't part of Flash Player, but instead part of the website's code.
    If you go to this page and click the "Check Now" button, what is displayed (OS, browser and version number)?  Do you see the "tree" animation playing below?
    Flash Player Help
    Thanks,
    Chris

  • When I close out a website it goes to my desk top and then tells me firefox is running and I have to shut down the system

    when I close out a website it goes to my desk top and then tells me firefox is already running and I have to shut down my system and bring it back up and wait to log back in. It's quite frustrating.

    Try Ctrl>ALT>DEL then click Start Task Manager, then find the process firefox.exe, then click end program, then try opening Firefox again. <!-- click applications > new task.... > explorer.exe --> done! If that doesn't work, then try re-installing Firefox or going to this link to safe mode area and click continue to safe mode and then try and exit, if this problem still occurs then disable extensions and plugins

  • I uninstalled Firefox once, reinstalled it and it ran. I had a problem so I did it again. Now it will not run and I get an error message saying that firefox is running and you can only run one at a time. I can't figure out what is running.

    Because of a problem, I uninstalled Firefox once, reinstalled it and it ran. I had a problem so I uninstalled/reinstalled it again. Now it will not run. I get an error message saying that firefox is running and you can only run one at a time. I have uninstalled multiple times and can't figure out what is running. The is only one Firefox installed and it is not open. What does this mean and how do I fix it?

    If you use ZoneAlarm Extreme Security then try to disable Virtualization.
    *http://kb.mozillazine.org/Browser_will_not_start_up#XULRunner_error_after_an_update
    See also:
    *[[/questions/880050]]

  • I am trying to update a number of items which the software check brings up:      It runs and says it is installing but at the end I get this error message:    The update could not be expanded, and may have been corrupted during downloading. The update wil

    Hi,
    I am trying to update a number of items which the software check brings up:
    It runs and says it is installing but at the end I get this error message:
    BUT then I ge tthis:
    Can anyone help me to enable the software to update?
    Thanks

    Thanks.  Something isn't right as I just tried to download the iphoto update - it said it had competed the download but then when I clicked on the download item I get this:
    Think will have to take it into the store.....
    thanks for replying.

  • I try to open Firefox. Get error message saying Firefox is already running and needs to close - another error message say Firefox can't open

    Turned on laptop (rebooted) after being away from it for a few hours. Went to open my home page. Error message popped up saying Firefox is already running and must be closed. I closed it and another error message popped up saying Firefox can't open - incomplete or missing files.
    I went into Processes to close Firefox. Selected 'end process' but nothing happened.
    Tried to use Internet Explorer but it just gets hung up. Cannot access anything.
    And, because I can't open Firefox, I can't go a refresh.
    Everything was working just fine a few hours ago.
    Any thoughts?

    What is the computer system and Firefox on the bad computer?
    Separate Issue;
    Your System Details on this computer shows;
    Multiple versions of your Adobe programs.
    Having more than one version of a program may cause issues.
    Go to '''adobe.com''' and download the full installers after removing
    all of the old programs.
    Start '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in Safe Mode]''' {web Link} by holding down the '''<Shift><br> ''(Mac Options)'' ''' key, and then starting Firefox. Is the problem still there?
    This is not a cure but will make it easier if Firefox locks up in Windows.
    '''https://support.mozilla.org/questions/997866''' {web link}

  • I can't get my Windows 7 pc to recognise my old LG VN251 phone via USB.   The verison software upgrade assistant runs and my phone is up to date.   I do get a window that pops up that says I can either run the bootstrap or look at the files on the phone,

    I can't get my Windows 7 pc to recognise my old LG VN251 phone via USB.   The verison software upgrade assistant runs and my phone is up to date.   I do get a window that pops up that says I can either run the bootstrap or look at the files on the phone, but I cannot see any photos.   Thoughts?

    We want to make sure we move your pictures to your computer schpee! Do you have a memory card on your phone? If your pictures are not on your http://vz.to/1OvJVey memory card we would want to move them. After you move them than try http://www.verizonwireless.com/support/knowledge-base-45147/ to move them to your computer. Keep us posted.   AmberF_VZW Follow us on Twitter @VZWSupport If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • When I try to open firefox, I get a message that says, "firefox is already running" and to close it or restart my computer when it is NOT running, so I can't get on the internet through firefox. What is wrong?

    The information box pops up when I click on my desktop icon for firefox as well as if I try to access it in other ways. I have restarted my computer. I have tried removing firefox and redownloading it. No matter what I do, it still gives me a box saying it is already running, but not responding. When I pull up my taks bar, it is not running! I can't close it as the box suggests because it is not open to do it. I just keep getting a box saying it is already running no matter what I try to do, even though it is not running.

    I have tried everything I could to fix this, but some things require actually being on Firefox, and since I cannot get on, I cannot click on the tabs to do it. I have even totally uninstalled firefox, and that has not fixed this. I still get the same message that firefox is running and I need to close it or restart (which I have also tried dozens of times). I have removed things like Java, and that has not helped either. If I cannot even get on line in firefox, how can I fix this. I am not crazy about using internet explorer, but right now, it is my only option. I even tried to start in safe mode, and the same message box pops up!

  • I have my Calendar app syncing with iCloud.  Every time I open it it says, "Moving Calendars to Server Account..."  It runs and runs and does not stop.  As a result, I cannot access my calendars.  Please help.

    I have my Calendar app syncing with iCloud.  Every time I open it it says, "Moving Calendars to Server Account..."  It runs and runs and does not stop.  As a result, I cannot access my calendars.  Please help.

    I have the same problem, I tried the solution of Dr Cox but that didn't work as he said go to system preference then mail, contacts etc. but I don't have that.  Can someone help?
    Elaine

  • I am having trouble with Firefox not closing properly. I close a session and when I try to open firefox again it tells me firefox is already running and not responding.

    When I close Firefox and try to open the browser next time it tells me Firefox is already running and not responding.

    See "Hang at exit":
    *http://kb.mozillazine.org/Firefox_hangs
    See "Firefox hangs when you quit it":
    *https://support.mozilla.com/kb/Firefox+hangs

  • I try to launch firefox get the following message "firefox is already running, but is not resonding. to open a new window, you must first close the existing firefox process, or restart your system" firefox is not running and restart doesn't work

    when I launch firefox get the following message "firefox is already running, but is not resonding. to open a new window, you must first close the existing firefox process, or restart your system" firefox not running and a restart doesn't solve the problem

    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 12.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you will also lose your personal data like bookmarks and passwords from profiles of other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    See also:
    *https://support.mozilla.org/kb/Firefox+is+already+running+but+is+not+responding
    *http://kb.mozillazine.org/Profile_in_use
    *http://kb.mozillazine.org/Recovering_a_missing_profile

  • When I try to open Firefox, a pop up says it is already running and I must close a window or restart. I can not figure out how to close the window they are asking me to.

    when I try to start Firefox, a pop up says it is already running and I must close a window or restart. I can not figure out what window they want me to close
    == This happened ==
    Every time Firefox opened
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; MDDC; .NET CLR 3.5.30729; .NET CLR 3.0.30618)

    See http://kb.mozillazine.org/Firefox_hangs and [[Firefox hangs]] (Hang at exit)
    Check in the Task Manager (XP: Ctrl+Alt+Del, Vista: Shift+Ctrl+ESC, Processes tab) if there are hanging Firefox processes.
    If you see any ''firefox.exe'' processes then click the End button to end those Firefox processes.
    You can only start Firefox in [[Safe mode]] or launch the [[Managing profiles|Profile Manager]] is all Firefox processes are ended.
    See also http://kb.mozillazine.org/Kill_application

  • Itunes update would not install due to an error, now itunes won't run and I get this message when I try to launch itunes: "This application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem"

    itunes update would not install due to an error, now itunes won't run and I get this error message when I try to launch itunes: iTunes.exe - Unable to Locate Component "This application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem."
    I'm on a Dell PC running Vista Home Premium.
    HELP!!!!!!!!!!!!!!!!!!!

    try removing all itunes and all other apple program
    follow this link for more info. http://support.apple.com/kb/HT1923
    reboot ur window after uninstalling
    after that download the latest itunes setup and install.

  • When I close Firefox my computer says it is still running and I have to restart my computer to get Firefox to run...this is a first for me.

    Every time I close Firefox and try to restart it my computer leaves a message that I still have Firefox running and that it is unresponsive and needs to be closed. The problem is that there isn't a still-running Firefox to be found, consequently it is impossible to close and therefore impossible to open. I have used every form of Firefox and this is the first time this has happened. Please, please don't force me to use Chrome or iExplorer!!

    Start Firefox in Safe Mode (above). Wait a few minutes, then close Firefox.
    Is there still a problem?
    If you are still having issues;
    Type '''about:support''' in the address bar and press '''Enter.'''
    Under the main banner, press the button; '''Copy Text To Clipboard.'''.
    Then in the reply box at the bottom of this page,
    do a right click in the box and select '''Paste.'''
    This will show us your system details.
    '''No Personal Information Is Collected.'''
    Start your '''Computer''' in safe mode with networking. Then start Firefox.
    '''[http://encyclopedia2.thefreedictionary.com/Linux+Safe+Mode Starting The Computer In Safe Mode;<br>Free Online Encyclopedia]'''

Maybe you are looking for

  • Viber can't access Push Notifications

    I deleted Viber from my Iphone 4, after it duplicated and scrambled the Viber address book. Reinstalled the App, and now get a error message saying "Viber can't access Push Notifications". Checked Settings/Notifications, and Viber is "On". Tried the

  • Can an AppleTV bought in the USA be used in Europe 220V 50 cycles PAL

    I'm considering buying an AppleTV in the US, but want to use it abroad where the current is 220V / 50 cps and the TV standard is PAL versus the US NTSC. Will it work?  Much cheaper to buy in the US.

  • Problem with multiple requests

    I have a problem with the users submitting multiple requests simultaneously. Let me put it this way: 1. User is on a tabbed panel with clear and search buttons. 2. User clicks on 'clear' button from any tab (request one). On successful completion, it

  • Desktop for home computer

    Can I have a desktop on my home computer, backup all info to it for my work blackberry without any conflicts?

  • How used join and projection in TC3.

    Hi to all experts, my quarry is that why Time Constraint 3 infotypes(pa0021) are not used in join and projection. i hope we may used with where clause subty and objps. in this way we may be used. if we should not be used explain me. then next how can