NoLogonDataAvailableException in User Mapping?

Hi,
I am storing a user id and password in the "User Mapping" for a system on the portal, by clicking on the "Personalize" link.
Now I want to retrieve these values in code.
But I am getting the error "NoLogonDataAvailableException".
Can anyone tell me what this indicates, and how to fix it?
Any help would be appreciated.
Thanks!
This is the code I am using, it was provided by SAP.
          //          obtain system
          String systemalias = "System1";
          // get user from request
          IUser iuser = request.getUser ();
          //response.write(request.getUser().getLogonUid() + "<br />");
          // get usermapping service
          IUserMappingService iums = (IUserMappingService)
               PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);
          IUserMappingData iumd = iums.getMappingData (systemalias, iuser);
          Map map = new HashMap ();
          try
               iumd.enrich (map);
          catch (NoLogonDataAvailableException nldae)
               // Error handling
               response.write(nldae.toString());
          catch(Exception e)
                response.write(e.toString());
          // In m is all data
        String userid = (String)map.get( "user" );
        String pwd = (String)map.get ("mappedpassword");
        response.write("<br />");
        response.write("hallo" + userid);
        response.write(" " + pwd);

If you are using user mapping in EP6 then you could use the following line of code to retrieve the information
HashMap userMapping = ((IUser)request.getUser().getUser()).getRawUserMappingData("<System Alias>")
I hope this helps
D

Similar Messages

  • SSO to Exchange without user mapping

    I have Exchange configured for collabration groupware integration, and it works fine. I can get my calander entries without a problem when I have a user mapping set for the Exchange Transport. I have SSO enabled using the iis_proxy.dll authenticating via Active Directory also without a problem. I can also connect to OWA without any issue. The only thing I don't like is that I need a user mapping for the calander availabity.
    Does anyone know of a way to make this more automatic? I don't want the users to need to maintain their own mappings.

    We are in the exact same situation. I thought that the SSO22KerbMap ISAPI filter would do just that but the user mapping is required no matter what, unless I'm missing something in my config. The Exchange and Active Directory users are the same so a user mapping should not be required.

  • How to set/get the values thru Wedbynpro coding for User mapping fields

    Hi All
    In system object we have the user mapping fields like District,city,plant,Salesmanager.
    now we want to set/get the values of these usermapping fields of system object thru webdynpro coding...
    if anybody have sample codes of the same then it would be great help to me
    Thanks in advance
    Thanks
    Trisha Rani

    Hi Kavitha
    Thanks for your reply
    My requirement is exactly as follows.
    1) i have created one portal system object in system administration and also i created usermapping fields in the system object from the usermanagement  in system object.
    i created the user mapping fields like Plant,SalesManager,District etc.
    i also created the system alias name for the same system object
    2)  Now i came to persoanlize link and mapped the system object to the portal user.
    while mapping to the system object we need to enter Mapping userId, Password , once we enter these values and we can also enter the values of usermapping fields which we defined while creating the system object ( for example District,Salesmanager,Plant etc)
    once we enter all the values and click on save then these usermapping  values to be mapped to the portal user.
    3) Now my requirement is , i  want to control the usermapping field values thru webdynpro coding for setting/getting the values.
    I need sample code of the same.
    Please let me know if u need more details on the same.
    Thanks
    Trisha Rani

  • SSO and User Mapping at same time

    Hi,
    Can we use SSO and User mapping at same time between Portal and SAP Backend system?
    For some of the users the user id is different in both end.
    After implementing the SSO... Will it affect the existing user mapping? and the system alias created for that?
    If not, Can we use both SSO and user Mapping same time?
    Thanks,
    VB

    Hi VB,
    In this case I suggest you create 2 systems one you might have created for users who are having common user ids in portal & at the backend system.
    For the users whose ids are defeering you can create reference system and in user managemant property of that system
    Authentication Ticket Type - Select -SAP Logon TicketSAP Assertion Ticket
    Logon Method -  UWPW
    User Mapping Fields -  {100,200,300}Client;Language
    where 100,200,300 are the clients of the backend system.
    Assign this system in the ivews.
    Thanks,
    Vishal

  • User Mapping to R/3 - admin.pwdprotection=false but still pwd field appears

    <br />
    Hello All,<br />
    I am doing SSO using user mapping to R/3 system from Portal as the ids are different for Portal and R/3.<br />
    I can access a transaction iview from R/3 successfully using user mapping(in SSO) but the problem is everytime a user changes his R/3 password, the mapped password is to be changed in Portal.Otherwise, unable to access transaction iview.<br />
    1) I have changed the property ume.usermapping.admin.pwdprotection=false in configtool but still in User Admin > User mapping for system access , the password field is populated and while accessing the R/3, the password is being verified. I have seen in another system where the password field is not being asked after modifying the property to false, only id field is present. From the end user, under Personalize > User Profile > User Mapping for system, no systems are present as expected for mapping. Logon method in system is uidpw and mapping type is "Admin".<br />
    Versions - Portal is NW7.0 SP18 and ECC is .0 EhP3.<br />
    anybody faced the same problem? Is there a note to fix it?<br />
    2)Also, in the User Admin > User mapping for system access , in the dropdown I can see the system aliases I have created in systems but not in System admin> sys config > Ume config > under User Mapping , I do not find any reference system. <br />
    After first restart it was not there, after some time it has come, later it was coming as configured but invalid beside the system in braces in dropdown like abc(configured but invalid). Once I unselected, now it is no more available in dropdown.<br />
    3) I have used diagtool to identify the problem. In the ticket, how do I see the mapped user?<br />
    I am seeing only the following details.From the log - <br />
    The created ticket is: <br />
    [ [Ticket [initialized]<br />
      Ticket Version  = 0<br />
      Ticket Codepage =  (Encoding=1100)<br />
      User = 121444<br />
      Issuing System ID     = EPD  ( Portal name)<br />
      Issuing System Client = 000<br />
      Creation Time = 200905150649<br />
      Valid Time    = 8 h 0 min<br />
      Signature (length=261 bytes)<br />
      InfoUnit id=32, name=portal_user, content=portal:121444, length=16<br />
      InfoUnit id=136, name=authscheme, content=basicauthentication, length=19<br />
      InfoUnit id=1, length=9<br />
      InfoUnit id=2, length=3<br />
      InfoUnit id=3, length=3<br />
      InfoUnit id=4, length=12<br />
      InfoUnit id=5, length=4<br />
      InfoUnit id=10, length=9<br />
    ]. <br />
    Authentication stack: [ticket].<br />
    <br />
    Does this have an entry for mapped user of target R/3 system also?<br />
    If I am not finding the userid/pwd in ticket, how is SSO working? based on user mapping only?<br />
    Thanks,<br />
    Isvarya<br />

    Thanks Anja for the quick response.
    My primary objective is to use SSO with logon tickets to backend which is independent of user passwords.
    regarding 1)
    From the link -
    http://help.sap.com/saphelp_nw70/helpdata/EN/f8/3b514ca29011d5bdeb006094191908/frameset.htm
    Features
    ●      Either users or administrators can perform user mapping.
    ¡        Users must always enter a password to validate their mapped user ID.
    This password is not stored, but is used to confirm that the user is entering a user ID with which he or she has access to the ABAP-based system.
    ○       Administrators can enter a password to validate their entries.
    The UME property ume.usermapping.admin.pwdprotection defines whether or not the administrator must enter a password. By default the administrator must enter one.
    is also in the same lines.
    But as per the SAP library link, I do not find a reference system  because of problem 2 in the initial post.
    Also, I have a screenshot of user admin where the password field itself is not present. If you can share your email id, I will send the scrnshot without pwd and mine with password.
    2)I have seen this note. But, none of the 3 cases mentioned are applicable to me..user mapping is working just fine..Only reference system is not populated. 
    3) Becuase of 1, I was expecting to see mapped id alone or mapped id along with system name in logon tickets.
    Thanks for the response.

  • Portal Runtime Error while performing User Mapping  to SAP SRM

    Please find below the error I received while User Mapping from  Enterprise Portal to SAP SRM :
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : pcd:portal_content/administrator/super_admin/super_admin_role/com.sap.portal.user_administration/com.sap.portal.user_mapping/com.sap.portal.userMappingAdmin/com.sap.portal.userMappingAdmin
    Component Name : com.sap.portal.usermanagement.admin.UserMappingAdmin
    User Mapping not fully available..
    Exception id: 04:21_23/06/05_0073_8097650
    See the details for the exception ID in the log file

    Hi,
    yes, Karsten is correct. Just some background:
    "User Mapping not fully available.." finally means that user mapping is configured to use strong encryption, but the main crypto key for user mapping is missing. Usually, that's because "SAP Java Cryptographic Toolkit" and/or "JCE policy files for unlimited strength encryption" are not installed (or the server hasn't be restarted afterwards). The note will most likely help
    Best regards
    Heiko

  • Error while creating the user mapping

    hi friends i was gettig this error while editing the logon data in user mapping.
    An exception occurred while processing a request for :
    iView : pcd:portal_content/administrator/super_admin/super_admin_role/com.sap.portal.user_administration/com.sap.portal.user_mapping/com.sap.portal.userMappingAdmin/com.sap.portal.userMappingAdmin
    Component Name : com.sap.portal.usermanagement.admin.UserMappingAdmin
    User Mapping not fully available..
    Exception id: 12:54_19/02/07_0002_9709050
    See the details for the exception ID in the log file

    Hi Rajesh,
    Navigate to <b>User Administration---->User Mapping</b>
    Under Search, Search for your user id in users.
    You will get ID, Name with <b>Edit Link</b> and by the side "System" Drop Down Box which contains the name of the system Aliases that u created.
    <b>Click on Edit Link,</b> It will ask for user and password. Give the user and password for R/3 System and clicked save. After this you will get an info like, Logon Data Saved.
    ******Hope this helps you. Reward Points if you find this helpful.
    Regards,
    Eben. J <i></i><i></i><i></i>

  • Error in User Mapping

    Hi All,
    I have created a system from Application integrator PAR file and has added on extrafield to the system as I have three fields to be mapped with the target application.
    On doing so when I try to preview the iView using this system for connecting the target application I am getting the following error.
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : pcd:portal_content/com.tcs.192207.192207/com.tcs.192207.192207_Roles/com.tcs.192207.home/com.tcs.192207.documentum/com.tcs.192207.documentum_01
    Component Name : com.sap.portal.appintegrator.sap.Generic
    Exception in SAP Application Integrator occured: Unable to process template 'userName=<MappedUser>&password1=<MappedPassword>&repositoryName=<<b>Repository</b>>', because 'Repository' is an invalid terminal property of the Root context..
    Exception id: 10:48_01/06/07_0027_203196350
    See the details for the exception ID in the log file
    I dont know what to write in place of the bold portion.
    I have added the extra mapping field with the name Repository
    I tried MappedRepository also that is also not working can sombody please help. I am getting null at the target application end for this extra field rest of the two I am able to recieve.
    Regards
    Sid

    Hi Sid,
    your template does not work because Repository is no standard parameter. You have to use a custom provider for this parameter. Refer to chapter 6 (Making Parameter Dynamic) of document <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bf8cc890-0201-0010-00b1-8d04e5f4378a">"How to…Use the Application Integrator"</a>.
    Basically, you have to write a portal service which provides the parameter at runtime. If I understood you right the parameter Repository has to be set by the user in the user mapping dialog. Thus you can access the value using the IUserMappingService See the SAP Library for an <a href="http://help.sap.com/saphelp_nw70/helpdata/en/69/3482ee0d70492fa63ffe519f5758f5/frameset.htm">Example</a>.
    Best regards,
    Martin

  • Issue with user mapping and SAP reference system

    Hello Gurus,
    I have this strange system behaviour when preparing my system for single sign-on using user mapping.
    Case 1.
    In the user management property category, I have the following defined.
    Authentication Ticket Type - SAP Logon Ticket
    Logon Method - UIDPW
    User Mapping Fields  -
    User Mapping Type - admin, user
    In the alias editor, I defined the default alias as SAP_PRD
    Result= when I go to identity management to assign the reference system (the default alias - SAP_PRD)...I do not see the system alias there.
    Case 2:
    In the user management property category, I have the following defined
    Authentication Ticket Type - SAP Logon Ticket
    Logon Method - SAPLOGONTICKET
    User Mapping Fields  -
    User Mapping Type - admin, user 
    In the alias editor, I defined the default alias as SAP_DEV
    Result, when I go to the identity management to assign the refernce system (the default alias - SAP_DEV), I see it there.
    What might be my issue? Does it mean I can't assign SAP reference if I am using UIDPW as logon method?
    Please help me.

    Hi Mahesh,
    Thanks for the feedback. I am relatively new to EP...so please I won't mind if you can guide me on how to go about this.
    This is what I did...
    I chose System Administration > Permissions
    In the PCD, I located my system with the alias, SAP_PRD
    It opened up the permission assignment area.
    Now I have these permissions set
    Administrator - Full Control
    Administrators - Full control
    com.sap.caf.eu.gp.roles.superuser - Full control
    Everyone (built in group) - Full control
    Everyone (Everyone role)- Full control
    super_admin_role - Owner
    For all the above End User box is checked.
    I can't find anyone end user group .
    Once I pick UIDPW, the alias disapperars from the reference system list.
    Please help.

  • Configuration Issue in User Mapping ..

    Hi,
    Pls help resolve this issue..
    When i go to <b>" UserMapping "</b> option using the <b>"Personalize "</b> link , i get the following error msg..
    "There is a configuration issue which leads to problem when accessing user mapping data for the selected backend system"
    Also , if i go thru "User Administration -> User Mapping "
    then it says,
    --"There is a configuration issue which leads to problem when accessing user mapping data for the selected backend system  .
    Usually reason is user mapping being configured for Strong encryption, but necessary additional files might be missing.Check Security log file for information "--
    I am not able to solve this problem..Pls help
    Thanks in advance

    Hi Venkat,
    <b>Here the quick and dirty solution</b>:
    In your portal go to 'System Administration' -> 'System Configuration' -> 'UM Configuration' -> 'Direct Editing'.
    There locate the parameter 'ume.usermapping.unsecure', set it to 'TRUE' and restart your server.
    I would rather recommend to install the unlimited strength jurisdiction policy files.
    For more info on this, check this thread:
    JCE Jurisdiction does not allow Portal to start
    Hope this helps,
    Robert

  • How to defne user mapping for a Webservice method to acheive single sign on

    I all,
    I have created a Web service System using a url (containing full path of my wsdl )
    Now this particular wsdl(my webservice) has an <b>authenticate method</b> , which takes username and password.
    wanted to know is there any way that i can do user mapping for it .
    i.e when i create an ivew for this web service system using authenticate method , it should pick up the username and password from the user mapping. presently the ivew itself asks for username and password ?
    else can anyone tellme is there a way to do user mapping for my web service system that i have created using a wsdl url. presently it works with any junk username password, i mean the connection always succeds , may be because accessing a wsdl dosent requires any user name and password.
    thanks

    I all,
    I have created a Web service System using a url (containing full path of my wsdl )
    Now this particular wsdl(my webservice) has an <b>authenticate method</b> , which takes username and password.
    wanted to know is there any way that i can do user mapping for it .
    i.e when i create an ivew for this web service system using authenticate method , it should pick up the username and password from the user mapping. presently the ivew itself asks for username and password ?
    else can anyone tellme is there a way to do user mapping for my web service system that i have created using a wsdl url. presently it works with any junk username password, i mean the connection always succeds , may be because accessing a wsdl dosent requires any user name and password.
    thanks

  • Need Help in User Mapping

    Hi,
    I have created some R/3 transactions and assigned to end user.
    When i click on some Transaction name, it prompts me for username and password.
    Can i personalise this by taking the username and password automatically.
    Regards,
    Raju

    Hi,
        From User administration -> Identity Management, select the user, group, or role that you want to map to a user (who is accessing the transaction iView). Click on Modify button below to edit details. Go to tab User Mapping for System Access . Select the R/3 system from dropdown and enter R/3 username and password to which this portal user or group is to be mapped to.
    Open system properties and go to User management. Give the following values for the properties.
    User Mapping Type :admin, user
    Logon Method : UIDPW
    For more details, check these
    http://help.sap.com/saphelp_nw70/helpdata/EN/b6/8b9aea8d7c11d5bdd8006094191908/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/a4/76bd3b57743b09e10000000a11402f/frameset.htm
    Link mentioned by John is this
    https://wiki.sdn.sap.com/wiki/display/EP/HowtoConnecttoSAPR3SystemthroughEnterprisePortal7.0Usingan+iView.
    Regards,
    Harini S

  • Error in Accessing User Mapping Data

    Hi,
    When i tried User Mapping by going to
    "UserAdministration -> UserMapping" , or
    "Personalize" -> "User Mapping"
    it gives the error msg ,
    Problem in accessing user mapping data for selected system.
    Due to this i am not able to create appointments or see the availability status of a user.
    Also, for your information i have Strong Encryption files installed.
    Pls help.
    Thanks in advance..

    Hi venkat,
    You need to change the default value in UME configuration
    System admin -> System Config -> UM Configuration -> Direct Editing
    ume.usermapping.unsecure=TRUE
    Regards
    PS: Please consider rewarding point

  • Question about Logon ticket with user mapping at BI-JAVA environment

    We're implementing BI 7.0 including BI Java and SAP EP for end user
    access.
    I have two question about SSO method when we're using BI Java.
    I know we can simply configure SSO logon ticket with BI-Java(EP
    included) and BI-ABAP through BI template installer and we already
    succeeded in that case.
    But the problem is we want to change it to user mapping SSO method for
    some our internal reason.
    After we configure user mapping SSO, we've got SSO failed error when we
    call BI-Java stuff like BEx Web Application iView.
    After many testing implemented, we found SSO Logon ticket with user
    mapping (using SAP reference system). It seems working now.
    But our question is "Is it no problem when we use SSO logon ticket with
    user mapping?" Is there any restriction or issue?
    One more question is we can ONLY use user base mapping when reference
    system used. How can we assign BI-ABAP users to EP Group?

    Using an SAP Reference system is allright. But if the reason u r going for this is because of different usernames in EP and BI, why dont you go for user mapping.
    Anyways, on restriction of reference syetms is that you can have ONLY ONE reference system defined in portal. In you case you can only have the BI system defined.
    Hope this helps!!

  • Problem about SSO using logon ticket  with user mapping

    Hi everyone ,
    I had done SSO with Portal , BW and R/3 system.
    I use logon ticket with user mapping .
    When user name is same in Portal as in R/3 system, or user name is same in Portal as in BW , user can access R/3 transactions and BW report without logon.
    There are some Portal users name which are different with R/3 user and  BW user. And I done the user mapping for these  user.
    But some user mapping works fine,but most of them can't work,means that most of them need to enter mapped user ID and password.
    What's the reason?
    When SSO using logon ticket with user mapping, the Portal user which is different with R/3 user and BW user,  can they access R/3 transaction iview and BW report iview without logon?

    Hi Chen,
    What you have done is correct. But the problem lies here.
    Since you are using the same system object for accessing the iview, where the ticket method is set to SAPLOGONTICKET in the user Management property of the system object.
    To avoid this create another system object like the previous one but set the logon method to UIDPW and select admin, user from the drop down box. Also create a system alias for this system.
    Now create another iview like the previous one but link this iview to the new system. Now do the user mapping for the users which are different in portal compared with R/3. Now you should be able to login without any problems.
    Another important point is login to portal with Fully qualified domain name. In the ITS property of the system object also give the FQDN.
    Hope this helps
    Regards
    Arun

Maybe you are looking for

  • My IPOD shuffle cannot be udpated

    Every time I try to load a song into my IPOD shuffle I get the following error message: "The IPOD cannot be udpated. The disk could not be read from or written to." I have downloaded the updates, reset the IPOD, and all goes well until I try to drag

  • Error when using BAPI_ACC_DOCUMENT_POST...

    [code] Hello Experts, Iam using the said BAPI for the first time and I am not sure if I filled up the fields correctly. What I want to do is to post multiple debit entries(40) and a special G/L entry for vendor(posting key 39). I also need to generat

  • Need help with provide statement in pnp progrm

    hi experts, i need to select all the records that : 1. pa00014-sunty in so_subty. base on the records that he found' i need to select from pa0001: p0014-endda = > p0001-begda and p0014-begda = < p0001-endda and p0001-persk ne so_persk. what i did: pr

  • Artwork issues in iTunes 10.5.2

    It's not a great issue, but after updating itunes, the artwork from my ipod classic no longer displays in the "selected item" window of itnues. It is still associated with the songs on the ipod because if I go into "get info"  the artwork is present.

  • Using Runtime class

    Hi, i would like to run a an external java program from within another java program, here is the structure of my called parogram c:/temp/jetty /lib/*.jar start.jar my caller program have to invoke the start.jar, but this jar uses the lib folder so my