Access system information before logging on

On the logon screen we added a link to a third party application (for to change the password).
Depending on the portal (development, consolidation, productive) it should be on each machine
another link, because this third party application runs also on three different servers
(development, consolidation, productive).
The idea was now to take the system information from the system landscape of each portal.
ISystemLandscapeService service =
(SystemLandscapeService)
   PortalRuntime.
    getRuntimeResources().
     getService(ISystemLandscapeService.KEY);
IDesigntimeSystemLandscapeService desTimeSLService =
service.getIDesigntimeSystemLandscapeService();
try {
     IUser user = (IUser) componentRequest.getUser();
     ISystemObject so = (ISystemObject) desTimeSLService.getObjectRunTime("PW_CHANGE", user);
     Attribute server = so.getAttribute("server");
     Attribute protocol = so.getAttribute("protocol");
     String pass_change_url = protocol.get().toString()+"://"+server.get().toString()+"/ChangePassword/start.jsp";
catch (NamingException e){
My problem is, that the current user is not logged on at this moment.
Therefore user is null and I can't get the ISystemObject.
Does someone has an idea how to solve this?
Thanks and regards,
Marcus

Hi Marcus,
<i>maybe</i> you can use the pcd_service user for this, sorry, at the moment I don't have the time to check if it is nonsense... This would be done as follows:
IUser serviceUser = null;
try {
  serviceUser =  (IUser)AccessController.doPrivileged(new PrivilegedExceptionAction(){
    public Object run() throws Exception {
      IUserManagementEngine umService = (IUserManagementEngine) PortalRuntime.getRuntimeResources().getService
          ("com.sap.portal.usermanagement.user_management_engine");
      IServiceUserFactory serviceUserFactory = umService.getServiceUserFactory();
      return serviceUserFactory.getServiceUser(PCD_USER);
} catch (Exception e) {
  e.printStackTrace();
Hope it helps
Detlev

Similar Messages

  • Error while trying to access system information for AS Java

    Hi,
    I´m not sure if this is the correct forum so if I'm wrong please let me know to move it to the correct one.
    We are facing an extrange behavior when trying to access System Information in an AS Java, every time we try to access the link the following error shows up:
    Error - ID018236: Cannot instantiate bean. java.lang.ClassNotFoundException: com.sap.engine.monitor.infoapp.SystemInfo
    the complete error shows:
    Found in negative cache -
    Loader Info -
    ClassLoader name: sap.com/tc~monitoring~systeminfo Parent loader name: References: common:service:http;service:servlet_jsp service:ejb common:service:iiop;service:naming;service:p4;service:ts service:jmsconnector library:jsse library:servlet common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl library:ejb20 library:j2eeca library:jms library:opensql common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore interface:resourcecontext_api interface:webservices interface:cross interface:ejbserialization library:tcjmx library:sapxmltoolkit library:tcSLUTIL Resources: /usr/sap/QBW/DVEBMGS03/j2ee/cluster/server0/apps/sap.com/tcmonitoringsysteminfo/servlet_jsp/sap/monitoring/root/WEB-INF/classes /usr/sap/QBW/DVEBMGS03/j2ee/cluster/server0/apps/sap.com/tcmonitoringsysteminfo/servlet_jsp/sap/monitoring/root/WEB-INF/lib/jstartupapi.jar /usr/sap/QBW/DVEBMGS03/j2ee/cluster/server0/apps/sap.com/tcmonitoringsysteminfo/servlet_jsp/monitoring/root/WEB-INF/classes /usr/sap/QBW/DVEBMGS03/j2ee/cluster/server0/apps/sap.com/tcmonitoringsysteminfo/servlet_jsp/monitoring/work /usr/sap/QBW/DVEBMGS03/j2ee/cluster/server0/apps/sap.com/tcmonitoringsysteminfo/servlet_jsp/sap/monitoring/work /usr/sap/QBW/DVEBMGS03/j2ee/cluster/server0/apps/sap.com/tcmonitoring~systeminfo/servlet_jsp/sap/monitoring/root/WEB-INF/lib/jstartupimpl.jar Loading model: {parent,references,local} -
    Any idea about what is happening is appreciated.

    check with this links too
    http://hostname:port/sap/monitoring/SystemInfo
    http://hostname:port/monitoring/SystemInfo
    Implementing this note should solve your problem
    Note 1281251 - System information exception: Connection is invalid
    and also check
    Note 1233282 - Fixed URL of System Information application on Start page
    Thanks,
    Surendra

  • System Information Not Working Correctly

    I have a MacBook Pro Retina 15" (Mid-2014) running OS X 10.10 (Yosemite).  When accessing the System Information utility, details about the hardware does not show up correctly or not at all.  This only happens when accessing System Information using the following 2 methods:
    Holding the "option" key, clicking on Apple, and selecting "System Information. . ." or
    Accessing the "System Information" application from Launchpad.
    When "System Information" is access by selecting "System Report" from "About This Mac", details about the hardware are presented correctly.
    Here are 2 images showing that the details show up incorrectly or not at all:
    Now, here are the good examples:
    Does anyone know why this is happening how to fix it?  The information should be the same, regardless of the way I access the "System Information" utility, right?

    Have a look at
    Re: System Information is blank?
    From RáNdÓm GéÉzÁ: bug related to System Preferences/Scroll bars always on.
    Work around: set Scroll bars on Automatic mode.

  • How to find System information Of Enterprise Portal from OS/DB level

    HI All.
    How to find the system information of Enterprise Portal  from OS/DB level. like system name, version, stack.
    ITS VERY URGENT
    Thanks in Advance.
    Mahesh

    Hi Mahesh,
    here is where you can find the system information about your EP installation (i.e. O/S, DB, components release, etc):
    1- Goto the Web AS Java URL (http://<host>:<port>)
    2- Select "System Information" and log in as an administrator user
    3- After logging in, the system information page displays the O/S, DB, application server level
    4- Select "Software Components", select the link "all components" (upper right corner of the table) and then you should be able to see the version of your components/applications
    Hope this answers your question.
    Regards,
    Joseph

  • Kerberos Configuration Manager for SQL Server: Access of system information failed!

    I'm trying to use the new Kerberos Configuration Manager for SQL Server tool that was released recently to verify SPN on several SQL Servers, but any time I attempt to connect to a server I get the following error in the log:
    6/24/2013 3:48:22 PM Info: Connect to WMI, \\<HOSTNAME>\root\cimv2
    6/24/2013 3:48:25 PM Error: Access of system information failed System.DirectoryServices.AccountManagement.PrincipalOperationException: An error (1332) occurred while enumerating the group membership.  The member's SID could not be resolved.
       at System.DirectoryServices.AccountManagement.SAMMembersSet.IsLocalMember(Byte[] sid)
       at System.DirectoryServices.AccountManagement.SAMMembersSet.MoveNextLocal()
       at System.DirectoryServices.AccountManagement.SAMMembersSet.MoveNext()
       at System.DirectoryServices.AccountManagement.FindResultEnumerator`1.MoveNext()
       at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
       at KerberosCM.WMIHelper.isUserLocalAdmin(SystemInfo si, UserPrincipal user)
       at KerberosCM.WMIHelper.getUserInfo(SystemInfo mi)
    6/24/2013 3:48:25 PM Error: Error System.Exception: Access of system information failed!
       at KerberosCM.WMIHelper.getUserInfo(SystemInfo mi)
       at KerberosCM.SystemInfo.GetInfo()
       at KerberosConfigMgr.Utility.Login(String serverName, String login, String password, Boolean isCmdLine, Form uiForm)
    Things I have tried to resolve this:
    1. Verified that my account is a Domain Admin.
    2. Attempt to connect locally without inputting any information for server/user/pw
    3. Attempt to connect remotely using server/user/pw
    I always receive the same error message and log: Access of system information failed!
    Has anyone else run into this issue?

    Update to this:
    There were some invalid user accounts added to the Local Administrators group only showing up as a GUID. This caused the enumeration of the group to fail and generate the error in my original post. Removing those user accounts from the Administrators group
    got past the enumeration error.
    However, now when attempting to connect to the servers (locally or remotely) I get this error:
    6/27/2013 10:24:24 AM Info: Connect to WMI, \root\cimv2
    6/27/2013 10:24:38 AM Error: Access of system information failed System.Runtime.InteropServices.COMException (0x80070035): The network path was not found.
       at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       at System.DirectoryServices.DirectoryEntry.Bind()
       at System.DirectoryServices.DirectoryEntry.get_AdsObject()
       at System.DirectoryServices.PropertyValueCollection.PopulateList()
       at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
       at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
       at System.DirectoryServices.AccountManagement.SAMStoreCtx.ResolveCrossStoreRefToPrincipal(Object o)
       at System.DirectoryServices.AccountManagement.SAMMembersSet.MoveNextForeign()
       at System.DirectoryServices.AccountManagement.SAMMembersSet.MoveNext()
       at System.DirectoryServices.AccountManagement.FindResultEnumerator`1.MoveNext()
       at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
       at KerberosCM.WMIHelper.isUserLocalAdmin(SystemInfo si, UserPrincipal user)
       at KerberosCM.WMIHelper.getUserInfo(SystemInfo mi)
    6/27/2013 10:24:38 AM Error: Error System.Exception: Access of system information failed!
       at KerberosCM.WMIHelper.getUserInfo(SystemInfo mi)
       at KerberosCM.SystemInfo.GetInfo()
       at KerberosConfigMgr.Utility.Login(String serverName, String login, String password, Boolean isCmdLine, Form uiForm)

  • How can i see when someone has accessed my call/text log. (This is possible on google) I have been informed that someone has accessed my activity log and is giving my information to a third party. I believe it is a service tech, but I am not interested in

    How can i see when someone has accessed my call/text log. (This is possible on google/gmail) I have been informed that someone has accessed my activity log and is giving my information to a third party. I believe it is a service tech, but I am not interested in persuing that further. I just need to see when my account has been accessed if possible.

    Hi lynniewigs,
    This is a common concern among Android and I-phone user, and one of the drawbacks to using a smart phone.  We lose so much privacy. Our phones become cameras into our homes for us to be spied on.
    I don't know what type of phone you have, if it is even a smart phone, but here is an example of an application that you can use to determine which applications are accessing your information and sending it out. 
    Permission Scanner - Android Apps on Google Play
    Google just recently revamp their permissions geared to hide invasive applications that spy and send out your information without your knowledge.  Report says be aware of what your Android app does - CNET
    Please continue to be mindful of the apps you download and the permissions you give. 

  • How do you set up your iphone so when you connect to another computer you have to enter a password before accessing the information?

    Hi
    I just want to know how you can set up your iphone so when you connect to another computer you have to enter a password before accessing the information? My friend connected hers to my computer and it asked for a password so I know its a function.
    I have a phone password enabled so its not that, any help would be great.

    The Passcode Lock prevents syncing the iPhone with iTunes or accessing any data on the iPhone when the iPhone is connected to another computer different from the computer being used for syncing the iPhone.

  • Hello I downloaded adobe after effect CS6, but it is not installed and asks to install Adobe Support Advisor. I turn to the site and there wrote: "The Adobe Support Advisor tool was used to analyze installer log and system information associated with inst

    Hello I downloaded adobe after effect CS6, but it is not installed and asks to install Adobe Support Advisor. I turn to the site and there wrote: "The Adobe Support Advisor tool was used to analyze installer log and system information associated with installation errors. The tool has been replaced with improved installation support mechanisms. Please visit Adobe Support section for Knowledge base articles around Installation . " What do I do?

    yes, I did that with helping message 3, I'd remove Cs6 only, but it did not help. The message "Failed to initialize the setup program. To identify the problem, download the program Adobe Support Advisor" repeat again =(

  • I can't accessed system recovery options after the repairing process was interrupte​d.

    although it's not my PC, i'm still concern about it (it's actually a public computer in our library). I actually tried to repair it using the system recovery options of windows 7 with thinkvantage technoliogies  but i interrupt it because maybe someone will caught me and i will be mistakenly be liable. and the result is after i restared it, it restarts over and over again, with BSOD appearing for a split second. i tried to use disable autorestart on system failure feature, and i saw the BSOD. but the real issue is i can't go through the recovery options, only until the part when i'm asked to select a keyboard input method, then the next part is this message: "You must log in to access System Recovery Options. If you are having trouble logging in, please contact your computer administrator for assistance. Click OK to restart the computer." anyway, this is the BSOD says: 
    A problem has been detected and windows has been shut down to prevent damage to your computer.
    If this is the first time you've seen this stop error screen, restart your computer. If this screen appears again, follow these steps:
    Disable or uninstall any anti-virus disk defragmentation  or backup utilities. Check your hard drive configuration, and check for any updated drivers. Run CHKDSK /F to check for hard drive corruption, and then restart your computer.
    Technical in formation:
    *** STOP: 0x00000024 (0x00000000001904, 0xFFFFFA800690D840, 0XFFFFFFFFC0000102, 0x0000000000000000)
    I hope this problem will be solved as much as possible.  thank you in advance. and i also don't know what model of this Lenovo all-in-one PC is. but i think this is 3318F9U, and its i forgot its BIOS version, and i don't know how to access it. and also, i'm not sure if there's a preloaded Superfish in this all-in-one PC, maybe the vulnerability started it. because i recently read an article regarding the Superfish's vulnerability.

    Hello and welcome,
    Please remeber that this is a peer-to-peer forum (users helping each other) not the Lenovo support site.  There is some Lenovo presence, but  if you need urgent support, please try your local support office:
    Philippines
    THINK-branded products
    Tagalog, English
    1-800-8908-6454 (GLOBE subscribers), 1-800-1441-0719 (PLDT subscribers)
    Z.
    The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc.  The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • How can I correct System Information.app 10810 error

    I am running Mavericks 10.9.3 on my late 2012 Macbook Pro.  I used to be able to run System Information; however, now when I run it I see an error The application "System Information.app" can't be opened. -10810.  I've poked around on the net, Googled mostly, and have not found anything specific to my issue.  Finder, btw, runs fine and I have not yet seen this error with any other app.  Can anyone point me in the right direction to research or help me correct this problem?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • My system information on my Mac is not opening and I cannot view my storage info and serial number.

    Every time I try to view More Info on my Mac, all the System Information ever does is load but not open. What should I do?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Error while reading PO in backend system Inform system adiministrator

    Hi All,
    I am working on extended classic scenario and the problem is that after the PO ís ordered it gives the message " Error while reading PO in backend system Inform system administrator" and this is happening only for a particular local PO.
    When I check the PO number in R/3 it does not exist.
    The number range is correct both in SRM and R/3 (external no. range is ticked).
    Also I could not find any logs in RZ20 nor a dump.
    When I checked in bbp_pd, couldnt find any relevant information except that the PO has the status ordered.
    I am on SRM version BBPCRM 4.0 SAPKU40007
    R/3 version 4.6 C SAPKH46C47
    Thanks in advance,
    Rgrds,
    Raj
    Message was edited by:
            Raj Malhotra

    Hi
    Have you tried out this ?
    <b>There are two BADIs which might help you in achieving the job.</b>
    <u><b>BBP_EXTLOCALPO_BADI</b> [Control Extended Classic Scenario ]
    <b>and</b>
    <b>BBP_GROUP_LOC_PO</b>
    [Exit Grouping of Items for Local Purchase Orders]</u>
    <u>Read the documenatation first, using transaction - SE18
    before implementing them for your requirement.</u>
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • Right, MacBook Pro 17" early 2011(Built March) and my new OCZ sata III 6G not working, when is Apple going to admit there is a problem with the Intel's 6 Series Chipset. In System Information it says "Link Speed: 6 Gigabit" which is sata III.

    My MacBook Pro 17" early 2011(built March) and my new OCZ sata III 6G are not working together, when is Apple going to admit there is a problem with the Intel's 6 Series Chipset. In System Information it says "Link Speed: 6 Gigabit" which is sata III and in my MacBook Pro it does not work. 
    Now MacBook Pro 17" early 2011 built May onward do not have this problem it was fixed in the Intel's 6 Series Chipset. (So there is a problem). Cam I have my MacBook Pro fixed please.

    After biting the bullet and ordering more RAM, my computer now is working a ton better. So that must have been the main issue. With 8 GB RAM, I can now even run Parallels fluidly (better than my work PC!) where before simple things like logging in to my MBP after reboot could take forever.
    The place I went to had several other people getting RAM upgrades at the same time as me, so between this and other comments I've seen in discussions here and elsewhere on the Internets, I take it to mean that either Apple should bump up the base RAM on its new machines, and/or stop charging so much for additional RAM.
    I refused to believe a Pro machine bought with Lion installed would come with too little RAM for light to medium usage, but it was apparently the case. I'll mark this as a correct answer and hope some other poor soul will come across this thread and be helped by it.

  • USB storage devices not shown in Finder, yet function, and show in System Information?

    Occurring starting about last month, this has gone from a seldom, to all the time situation. plugging in any USB memory device either directly to the computer, or with cables, will allow the files to be accessed/changed/deleted by programs, but the device with it's files will not show in finder. The device shows in System information. I have set Finder to show everything, but they no longer apear. Before failing entirely, I would sometimes have the device show for a short time, then get an "Improper removal" error, without touching the device, after a few moments. All these memory devices still function properly when used in external devices and when direcly accesed by software. Not being able to use finder to modify content is a significant problem.

    Well I'm about out of ideas. Going off what you described, these devices work fine elsewhere and gradually failed on your computer.
    Unless someone else can post other ideas, I only can suggest a reinstall of Lion from scratch. I would make sure I had a good backup from TM and an additional backup of your important files just in case.
    Probably the easiest way would be to make a bootable USB stick or drive to work from. Procedure here: http://osxdaily.com/2011/07/08/make-a-bootable-mac-os-x-10-7-lion-installer-from -a-usb-flash-drive/
    If you can accomplish that, see if you can boot from it. If so, use Disk Utility to erase the main drive and reformat it. Verify the drive is OK. Then quit Disk Utility abd procede to install Lion.
    When the installation is finished, reboot and use Setup Assistant imediately to migrate your user data and applications back from the TM drive. Don't use migration assistant later.
    I doubt it will help since the Comb-Update didn't fix it, but who knows.

  • Nered to know where I can view ACL denies regarding "access-list deny any log" ?

    I ask this question in the context of an SNMP access list. I am guessing that this line of config (access-list deny any log) will allow you to see which addresses were denied SNMP access.
    I need to know where I can view the source addresses from where the packets were dropped? Could this be just in sh log? Thanks in advance for any help. Cheers

    Hi,
    Yes, with an extended access-list with the last line:
    deny ip any any log
    with "sh log" you can  see the source address of the packets being dropped.
    Take note that you must be at least in the logging level 6 (informational), by default console and monitor are in level 7 (debugging):
    logging console debugging
    logging monitor debugging
    With older IOS versions (before at least 12.4) you had to add the following lines at the bottom of the acl:
    access-list 101 deny   tcp any range 0 65535 any range 0 65535 log
    access-list 101 deny   udp any range 0 65535 any range 0 65535 log
    access-list 101 deny   icmp any any log
    access-list 101 deny   ip any any log
    to log the sources and destinations IPs and port numbers.
    Best Regards,
    Pedro Lereno

Maybe you are looking for

  • How to parse XML string fetched from the database

    i want to parse the XML string which is fetched from the oracle database. i have inserted the string in xml format in the database. The type of the field in which it is inserted is varchart2. I am successfully getting it using jdbc, storing it in a S

  • How do I create a forum (online community)?

    Can I create a forum(online community) using iWeb '08?

  • Upload Bank Details

    Hi All, I want to upload All Bank Details from flat file with one report for all the countries. Report-RFBVALL_0 (T code-BAUP) uploads only for one country at a time. There are more that 150 countries. Is there some standard report exist? Or some fun

  • Start java application from another programm

    Hi everyboda on this side, i got a big problem. I would like to start out of MS excel an java programm and I would like to hand over data from the MSexcel programm to the java programm. I hope someone can help me. My idea was to create a batchfile, w

  • Creating notification automatically

    Dear Experts, Can anybody tell me the way to tackle the following requirement: Requirement-Creating notification automatically Scenario- Currently we are creating and executing the proces orders for manufactured materials. Once the order is completed