Access UME from another J2EE engine

Hi,
I use a webdynpro application in a webdynpro iview, but the application is deployed to another server than the portal. It works so far, but I have to access the UME to read out informations about roles. But I can only access the UME of the server where I deployed the application, however I need to access the UME of the portal. How can I access the UME of the portal server, it is even possible?
Regards
Roman

Roman,
     The 2 solutions came to my mind are
     1. deploying your application on the server which has your portal running on it. This ultimately not favourable to your case.
     2. Creating a webservice for the UME data and deploying onto server that has portal running on it. consuming this webservice in your
         webdynpro application and deploying on any other server of your choice.
may not be of much help for you but some ideas....
Kiran
Edited by: kiran pichika on Apr 23, 2008 8:21 PM

Similar Messages

  • Access UME from Webdynpro Application

    Access UME from Webdynpro Application u2013 display the user attributes from Webdynpro iview
    How to go for this...??
    Edited by: saurav mago on Sep 1, 2008 6:45 PM

    Hello Saurav,
    Try this:
    import com.sap.security.api.IUser;
    import com.sap.security.api.IUserAccount;
    import com.sap.security.api.UMException;
    import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDUMException;
    try {
         IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
         IUser sapUser = wdClientUser.getSAPUser();
         if (sapUser != null) {
              java.util.Iterator parentGroups = sapUser.getParentGroups(false);
              while (parentGroups.hasNext()) {
                   String parentGroupName = (String) parentGroups.next();
                   if (parentGroupName.equals("GRUP.R3_ROLE_DS.Z:EP_XPTO123")) {
                        return true;
    catch (WDUMException e) {
         e.printStackTrace();
    OBS.: sapUser can be used to access a lot of info regarding the user.
    OBS.: you need to add a reference to "com.sap.security.api.sda", that is in the default SC SAP_JEE, if I well remember.
    Regards,
    Douglas Frankenberger

  • HT201272 I'm having trouble downloading a previously purchase song to my iCloud so I can access it from another device.  The iCloud download button is not there.  Help?

    I'm having trouble downloading a previously purchase song to my iCloud so I can access it from another device.  The iCloud download button is not there.  Help?

    I agree. I don't rely on iCloud as a backup, that is what I have my portable hard drive for. Its 500 GB so I can hold my entire iTunes library several times over on it. I have all my movies on my hard drive, but somehow "The Mist" got deleted off of my hard drive, so I figured "Well, the option to redownload an already purchased movie is available through iCloud, I'll just do that!"
    And permissions and download availability have nothing to do with it, the movie's still there, it still allows me to redownload it. The only problem is when I click download, I get that message.
    And nobody else uses my computer, but I do have multiple accounts authorized on it. Even still though, I am attepmpting to download it through the account I purchased it under. :/

  • Mapping UME Roles to J2EE Engine Security Roles

    Hi all,
    is there a way to map the roles defined in UME which are used in a Web Dynpro application to those declared as part of an EJB descriptor?
    Any help is highly appreciated.
    Regards,
    Sebastian

    Hi Sebastian,
    yes, it is possible to do such mapping. And here how it works:
    1. define security roles in the ejb-jar.xml within the <security-role>. For example:
    <security-role>
         <role-name>test</role-name>
    </security-role>
    2. then you map the roles those roles to server security roles using the <security-role-map> tag of the ejb-j2ee-engine.xml descriptor.
    <security-permission>
       <security-role-map>
          <role-name>test</role-name>
          <server-role-name>myUMErole</server-role-name>
       </security-role-map>
    </security-permission>
    the myUMErole must be defined in the UME!
    Does this answer your question?

  • Python ldap write access (acl) from another machine?

    i've downloaded and installed:
    http://python-ldap.sourceforge.net/
    and used this example code:
    http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303336
    and i'm using this code to connect to another machine that is running a vanilla install of leopard 10.5.2.
    The search works fine, but add and delete return this error:
    {'info': 'no write access to parent', 'desc': 'Insufficient access'}
    It would appear that the default acl for * doesn't allow for other computers to have write access?
    access to *
    by set="user/uid & [cn=admin,cn=groups,dc=test,dc=mydomain,dc=com]/memberUid" write
    by dn.exact="cn=test.mydomain.com$,cn=computers,dc=test,dc=mydomain,dc=com" write
    by sockurl="ldapi://%2Fvar%2Frun%2Fldapi" write
    by * read
    What I don't understand about acls is: are the 'by' lines all additive? if I was to add a new acl like the one below, will that give other computers, when authenticated as someone in the admin group, write access?
    It would appear that the default acl for * doesn't allow for other computers to have write access? or commenting out the dn=exact and sockurl?
    access to *
    by set="user/uid & [cn=admin,cn=groups,dc=test,dc=mydomain,dc=com]/memberUid" write
    by * read
    do i add this to /etc/openldap/slapd_macosxserver.conf and restart the server?

    Hi,
    You can check these few text-book style troubleshooting steps :-
    1. Can you PING the system computername from another System ?
    2. Can you check the ServerName Parameter in httpD.Conf of your IAS's Apahce & check if it contains computername ?
    3. Can you check if you can access http://computername:7777 or http://computername:7778 ( Default Ports ).
    4. Can you Telnet to computername at Port 80 ( using some software like Putty ) and issue Http Commands like GET / HTTP/1.1 ( just to check if the port is open ) ?
    Regards,
    Sandeep

  • Can I save documents from my PC to the icloud and access them from another computer?

    Can I save documents from my PC to icloud and access them from anywhere?

    This forum is for OSX users.
    Only within OSX you can store documents in iCloud, basically linked to iWork softwares.
    Please check Microsoft Office cloud solutions.

  • Are you suppose to access UIView from another thread?

    A lot of UI events in my apps take place in another thread. So in my uivewcontroller, it catches a button click for example, it launches a NSThread with some parameter. The reason I decided to use a thread is because if the duration takes long the UI completely locks up. The thread then fetches for some result and access a pointer to a UIView (a UILabel for example) and update it's content.
    Now, is this model correct? I'm running in cases where setting the UILabel.text from the thread sometimes work, sometimes doesnt. I'm not sure how to debug. If I change the thread call to a standard method call (which blocks until results are ready) the text is updated correctly.
    Any hints?

    http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/ThreadS afetySummary/chapter950_section2.html

  • Accessing data from another computer - a strain on my computer?

    My wife has an IBM Thinkpad laptop that is not connected to the internet. My computer is connected to the internet and sometimes she accesses her e-mail on it by clicking on a bookmark that I set up for her that links directly to her e-mail at work. Her entire work e-mail system (microsoft pc based) appears on my computer and she logs in. All of her e-mails (thousands) are on my computer including huge documents and such. I suspect that doing this may be causing my computer to freak out a bit.
    I only have 1GB of RAM. I once typed in the name of the bookmark "Ann's e-mail" into "spotlight" and it appears as though all of her work e-mails seem reside on my hard drive. One time she was checking her e-mail and a kernel panic happened. She's stopped checking her e-mail on my computer and the kernel panics no longer happen. Perhaps this is a coincidence but in general, do all her e-mails reside on my hardrive all the time or only when she clicks on the bookmark and logs in. Lately she doesn't even have to log in. All e-mail appears when she clicks on the bookmark. In the past it always asked for her password first. (I find it strange that it no longer asks for her password) ) She's going to be getting her own internet connection soon but does anyone know if bookmark that links to a ton of data on another computer uses up RAM or CPU on my computer?? Should I delete the bookmark?

    It sounds like you should be doing Internet Sharing on yours, is that not the case?
    Thank you for your reply, BDAqua. I haven't but doing internet sharing.
    Upgrade your RAM to 2 or 2.5 GB.
    I was told at the Apple store than the model I have will not allow any additional upgrades. When I bought the unit it had 512MB and I had 1GB of memory put in the only other remaining memory slot. So I actually have 1.5 GB RAM. AT some point I'm be getting a new computer in order to get 4GB RAM but can't afford it right now.
    What interface do you connect with, what interface does she connect wirh, and what is available on both?
    Sorry, don't understand this question. Do you mean how do I get the internet? I have Road Runner from Time Warner Cable. My wife's home laptop isn't connected to anything. She wants to get an Air Card so she can access the internet when she travels.

  • Flex Application Hosting issue unable to access webservice from another machine

    Hi all,
    I am having a flex application which is using webservice of the asp.net.When I host this application on the machine in which the webservice is present then it works fine.But when I am hosting the application on the another machine then the webservice is not being called.If any body have any idea pls suggest.
    Thnx in Advance,
    Shardul Singh Bartwal

    You may need a crossdomain.xml file. Flex security does not allow your SWF to access data on other domains without it.
    In this case even mysub.myCompany.com is considered a different domain from www.myCompany .com.
    These links should help you understand:
    http://livedocs.adobe.com/flex/3/html/help.html?content=data_6.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=deployingoverview_12.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=security2_03.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=security2_04.html
    If this post answers your question or helps, please mark it as such.

  • Accessing Storage from another network - NAS?

    Ok. Noob question here. My friend and I run a small design business. Luckily, business is good and our client list is growing out of control. We have a lot of big photoshop files, 3D models, etc. for hundreds of clients. Since most of the people who work for us work remotely (like in other states even) dropbox has been a huge help for collaborating and sharing files. But now, we are out of space.
    Down to the point. We are looking for a way to access external hard drive space from any network. I don't know anything about NAS, but we do have an old G4 tower that we could utilize. I've looked into a product called pogoplug biz and that seems good except that you have to go through the web service to get files remotely. We'd like to be able to access those drives via finder when on a different network.
    heres a breakdown of what we need.
    Remote access (different networks)
    multiple users
    secure access (password, login)
    2TB + storage
    secure backup
    If anyone has any advice - even if its just pointing me to an article of how to get started it would be greatly appreciated. Thanks!

    What type of internet connection do you have?
    If it is not business class (ie, dynamic cable modem) look into dynamic dns, and a router that supports it.
    You can then set up an FTP share on your G4. System Preferences >Sharing>File Sharing>options
    You should then setup the G4 with a static IP locally, and have the router forward FTP requests to it via port trigger/port forwarding. Using a non-standard port is advisable for FTP.
    You should then be able to access the share using ⌘-K, type in ftp://yourshares_ipaddress:portnumber and it should mount as a disk.
    Good luck!

  • Accessing variable from another class

    Say I want to access String ABC from class XYZ from my main class. I have already created the object for the class I just don't know the syntax for accessing the variable.
    This is just an example. I figured this is just a problem of finding the right syntax so I didn't bother creating a compiling code.
    public class test{
    public static void main(String[]args){
         XYZ xyz = new XYZ ();
         String a = abc.XYZ(); // this is where i want to directly access the variable abc. i know this isn't correct and it's what im trying to find out how to do.
    public class XYZ{
         String abc = "hi";
    }Edited by: aznprdgy on Nov 3, 2009 2:13 PM

    No, that isn't possible.
    abc is said to be a local variable. And it's only useable within method().
    It's part of the job of the class Xyz to control the access to its state. As an example:
    public class Test {
        public static void main(String[] args) {
            Xyz xyz = new Xyz()
            String a = xyz.getSpecialValue();
    public class Xyz {
        private String a;
        public String getSpecialValue() {
            return a;
        public void method() {
            a = "hi";
    }Note that a won't be reference to the string "hi" until after method() has been called.

  • Accessing variable from another JSP

    Friends,
    say, I have a Test1.jsp which has a variable "input". Is it possible to access this variable from other jsp "Test2.jsp"?
    any ideas?
    Thanks
    Hari V

    hi hari,
    there are essentially 3 ways of doing it....
    1).Usage of Hidden Values
    2).Using Cookies
    3).Storing attribute value within the scope of request/session/appln
    The choice is all urs....???
    Regards,
    RAHUL

  • Not able to access HTMLDB from another server running HTTP_SERVER

    Hi
    I had htmldb installed and running from dataabse server but then I moved APACHE server to another server. Here Apache is running from OEM 10g grid control
    I set up dad.conf and marvel.conf files for connection to htmldb server. Also I created marvel directory and copied images diretory from htmldb server to this Apache server marver directory. It did not work
    Here' the details from dads.conf file
    Alias /i/ "/opt/oracle/product/10.2.0_oem/oms10g/Apache/marvel/images/"
    <Location /pls/htmldb>
    SetHandler pls_handler
    Order allow,deny
    Allow from All
    AllowOverride None
    PlsqlDatabaseUsername htmldb_public_user
    PlsqlDatabasePassword @BfNvzBYH8alwoDCIEVVlTPg=
    PlsqlDatabaseConnectString ods1_dev.whq.ual.com TNSFormat
    PlsqlNLSLanguage AMERICAN_AMERICA.WE8ISO8859P1
    PlsqlAuthenticationMode Basic
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDocumentPath docs
    PlsqlDocumentProcedure wwv_flow_file_manager.process_download
    PlsqlPathAliasProcedure htmldb.wwpth_api_alias.process_download
    PlsqlDefaultPage htmldb
    </Location>
    Also I see following errors in Apache Log
    File does not exist : /opt/oracle/product/10.2.0_oem/oms10g/Apache/Apache/htdocs/portal/pls/htmldb
    Please help.
    Thanks
    Sunil

    In httpd.conf I have oracle_apache.conf file included
    In oracle_apche.conf I have <oracle home>/Apache/modplsql/conf/plsql.conf included
    And in plsql.conf I have
    <oracle home>/Apache/modplsql/conf/dads.conf file included.
    http_server is running and did not give any errors during startup

  • How to open a form of an already opened Access project from another application?

    Dear forum members,
    I have this problem: I have multiple modules in both Excel and Outlook that open Access forms. Therefore is use simple codes like these:
    Sub Regelopenen()
    ActiveWorkbook.FollowHyperlink "\\SERVER\Documenten\JBO\" & Environ("computername") & "\Orderstroom.accdb"
    Set oApp = GetObject(, "Access.Application")
        oApp.DoCmd.OpenForm "OrderOverzicht", , , "ID = " & Range("AM" & Selection.Row)
        oApp.Forms![orderoverzicht].Tabs.Value = 2
        oApp.DoCmd.Requery
    End Sub
    Most times the "Orderstroom.accdb" front-end will be running but when it's not I want the code to open it. For that manner I use the FollowHyperlink method (that simply opens the front-end if it's closed and brings it to the foreground) in
    combination with GetObject (that just sets the object).
    Now, this works like a charm, except for when another front-end was opened
    before Orderstroom.accdb! In that case, the code tries to open the wished form in the front-end that was opened first.
    I know that the form would open in the correct front-end when I add the front-end's path to the GetObject method, however this is no solutions because it will
    always open that front-end, even when it is already opened.
    I've searched for hours the past weeks. Unfortunetaly I can't seem to find a work-around for this problem! Can anyone help me, please? :(
    I'm desperately looking forward for you answers!

    Is this so impossible?

  • Access UME from WD

    Hi,
    Is it possible to the following in WD for Java running on WAS6.40(<u>without EP</u>)?
    Create a WD application with a page where there are two fields : username and passwd.
    Is it possible to get this pair of user id and passwd authenicated by calling any UME API from the WD application.
    Thanx in advance,
    Bhupesh

    hi Bhupesh,
    Hope So U r Searching for Best Answer...Regarding your question for getting username and password thrgh UME API.
        I had worked on an application where i get the Logged UserName and Password and other Information Stored in the LDAP Server.For that i created a I-view in which all information of Logged-in User is displayed thrgh Context, for this I use "com.sap.security.core.usermanagement".
    Hope so following code may be help-ful to u..
    IWDClientUser wdUser = WDClientUser.getCurrentUser();
                    IUser user = wdUser.getSAPUser();
                     nSpace = user.getAttributeNamespaces();
    nameSpace = user.getAttributeNames("com.sap.security.core.usermanagement");
                          for(int i = 0 ; i < nameSpace.length; i++)
                               if(nameSpace<i>.equals("uniquename"))
                               attrib = user.getAttribute("com.sap.security.core.usermanagement",nameSpace<i>);
                               //wdComponentAPI.getMessageManager().reportSuccess(":::::::: "nameSpace<i>"       "+attrib.length);
                                 for(int j =0 ; j < attrib.length; j++)
                                    //wdComponentAPI.getMessageManager().reportSuccess("Login ID::::::-->"+attrib[j]);
                                    wdContext.currentContextElement().setLoginid(attrib[j]);
                                userID = attrib[0];
    Similarly one-by-one u can get all the information of logged-in User......................
    Cheers..........;-)))
    regard's
    Dheerendra

Maybe you are looking for