How to get password of a logged in portal user in webdynpro.

hi,
i want to get the password of the logged in portal user through webdynpro. i already know how to get the user id and other information through webdynpro (using WDClientUser), but i want to get the password as well.
this is an urgent requirement. Immediate help will be highly appreciated and points will be awarded for helpful answer.
thanks in advance.

Hi
User Management APIs don't give the liberity to obtain the password, instead you can verify a password. Please check if your requrirement can be modified to check for password.
Please use code mentioned below and the one suggested before.
loggedInUser = WDClientUser.getCurrentUser();
user = loggedInUser.getSAPUser();
if (user != null)
IUserAccount[] acct = user.getUserAccounts();
if(acct[0] != null)
b = acct[0].checkPassword(password);
Thanks
Srikant

Similar Messages

  • How to get my writening history/log more than thre...

    How to get my writening history/log more than three months behind

    download SkypeLogView
    nirsoft.net/utils/skype_log_view.html
    and open the main.db file with it
    C:\Users\Tamim\AppData\Roaming\Skype\tamim\main.db
    can you see the history?
    Regards,
    Tamim
    Location - Dhaka | Bangladesh - Standard Time Zone: GMT/UTC + 06:00 hour
    If one of my replies has adequately addressed your issue, please click on the “Accept as Solution” button. If you found a post useful then please "Give Kudos" at the bottom of my post, so that this information can benefit others.

  • How to get the dynamic columns in UWL portal

    Hi All,
    I am working on UWL Portal. I am new to UWL. I have down loaded uwl.standard XML file and costomized for getting the  values for "select a Subview" dropdown and I am able to see the values in the dropdown. Now my requirement is to get the dynamic columns based on the selection from dropdown value.
    can any body suggest on how to get the dynamic columns in UWL portal.

    Hi  Manorama,
    1) If you have already created a portal system as mentioned in following blog
                  /people/marcel.salein/blog/2007/03/14/how-to-create-a-portal-system-for-using-it-in-visual-composer
    2) If not, then try to create the same. Do not forgot to give the Alias name .
    3) After creating a system, log on to the VC, Create one iView.
    4) Now Click on "Find Data" button from the list which you can view in right side to Visual composer screen.
    5) After clicking on "Find Data" button, it will ask for System. If you have created your system correctly and Alias name is given properly, then your mentioned Alias name is appeared in that list.
    6) Select your system Alias name and perform search.
    7) It will display all the BAPIs and RFCs in your systems.
    8) Select required BAPI and develop the VC application.
    Please let me know if you any further problems.
    Thanks,
    Prashant
    Do reward points for useful answers.

  • How to get the intersection of two arraylist containing user defined obj??

    How to get the intersection of two arraylist containing user defined obj??
    I can easily get the intersection of two array list which containing some simple class(Integer, String). But how to get the intersection of two arrayList which contain user defined object?
    Here is the sample code..I can not run this out...anybody can help me? thank you very much..
    The correct result should be like this:
    2
    2
    but I can only get this:
    2
    0
    import java.util.*;
    public class testRetain{
         public static void main(String[] args){
              ArrayList a = new ArrayList();
              ArrayList b = new ArrayList();
              a.add( new dog(1,2,2) );
              a.add( new dog(1,2,1) );
    System.out.println(a.size() );
              b.add( new dog(1,2,2) );
              a.retainAll(b);
    System.out.println(a.size() );
    class dog implements Comparable{     
         int head;
         int arms;
         int legs;
         dog(int head, int arms, int legs){
              this.head = head;
              this.arms = arms;
              this.legs = legs;
         public int compareTo(Object o){
              if ( ((dog)o).head > this.head )
                   return -1;
              else if ( ((dog)o).head < this.head )
                   return 1;
              else
                   return 0;
    }

    @Op. Your classes should override equals and hashCode
    Kaj

  • How to get a organization name for a particular user using API's

    Hi alll,
    How to get a organization name for a particular user using API's

    You need to do something like this:
    SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
                   UserManager usrService = oimClient.getService(UserManager.class);
                   Set<String> retAttrs = new HashSet<String>();
                   retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
                   List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
                   System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key"));

  • To get the Roles, Worksets, iviews assigned to portal user using webdynpro

    Hi..
    I need to display the roles, worksets, pages and iviews that are assigned to a particular portal user using WebDynpro.
    I tried to search in SDN and found a few blogs on this... but all are for DynPages. I could not find any inputs on how to achieve this in Webdynpro.
    I am listing down the blogs for your reference :
    1) /people/prakash.singh4/blog/2005/07/28/browse-roles-folders-pages-iviews-assigned-to-a-user-ep6-sp9-and-higher
    2) /people/prakash.singh4/blog/2005/09/06/create-a-sitemap-for-your-portal
    Please provide me your suggestions on how to display the roles, worksets, pages and iviews that are assigned to a particular portal user using WebDynpro.
    Thanks and Regards,
    Sayan Ghosh

    Please use following code to get all roles assigned to user:
         IWDClientUser wdUser = WDClientUser.forceLoggedInClientUser();
         IUser user = wdUser.getSAPUser();
         String strRoleID = "", strRoleDesc = "";
         IRoleFactory iRoleFactory;
         iRoleFactory = UMFactory.getRoleFactory();
         // Get All the Roles of the User
         Iterator iteratorRoles = user.getRoles(true);//prtRequest.getUser().getRoles(true);
         // Loop through all the Roles
         while(iteratorRoles.hasNext())
              strRoleID = iteratorRoles.next().toString();
              try
                   strRoleDesc = iRoleFactory.getRole(strRoleID).getDescription();
                   wdComponentAPI.getMessageManager().reportSuccess("Role: "+strRoleDesc);
              catch(Exception e)
                   wdComponentAPI.getMessageManager().reportException("Exception e: "+e, false);

  • How to get passwords working in Pages documents?

    I've set a pages document to require a password to open. When I open the file, it opens without requiring this password. Any thoughts on how to get the password working? The doc is on icloud, could that be a factor?

    Finally, I've added a new field movement in transaction GCF2 with sender tables ACCHD, ACCIT_GLX AND ACCCR. The joint venture name comes only from FI documents and not JVA documents, so, only JVA information of P&L accounts is available.
    Best regards,
    Alfredo Del Portillo

  • How to get the Login Id (UPI) of the user who logged in the system?

    hi,
    I'm having a webdynpro application. In which i want to get the values from the R/3 based on the user who logs in.
    so i need to get the UPI(login id) of the user who logs in. how to get the UPI of the user who logged in??
    please help me out with the detailed procedure.
    Thanks & Regards,
    Suresh

    Hi Suresh,
    Try the following code.
    ISearchResult rst = UMFactory.getUserFactory().getUniqueIDs();
                      IUserFactory usf = UMFactory.getUserFactory();
                      IUser iuser = null;
                      IUserListElement userElement = null;
                      int i = 0;
                      while (rst.hasNext()) {
                            iuser =
                                  UMFactory.getUserFactory().getUser(rst.next().toString());
                            String email = iuser.getEmail();
                            String fname = iuser.getFirstName();
                            String lname = iuser.getLastName();
    I have already used this code for the similar requirement.
    regards
    Anil

  • How to get password as string back from encrypted password byte array.

    Hi All,
    I am storing encrypted password and enc key in the database.(Code included encryptPassword method for encryption and validatePassword method for validating of password). Problem is that for some reason i need to show user's password to the user as a string as he/she entered. But i am not able to convert the encrypted password from D/B to original String.
    Tell me if any body know how to get the string password back from the encrypted password byte array after seeing my existing encryption code.
    //********* Code
    private Vector encryptPassword(byte[] arrPwd)
    try
    // parameter arrPwd is the password as entered by the user and to be encrypted.
    byte[] encPwd = null;
    byte[] key = null;
    /* Generate a key pair */
    KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DSA", "SUN");
    SecureRandom random = SecureRandom.getInstance("SHA1PRNG", "SUN");
    keyGen.initialize(1024, random);
    KeyPair pair = keyGen.generateKeyPair();
    PrivateKey priv = pair.getPrivate();
    PublicKey pub = pair.getPublic();
    /* Create a Signature object and initialize it with the private key */
    Signature dsa = Signature.getInstance("SHA1withDSA", "SUN");
    dsa.initSign(priv);
    /* Update and sign the data */
    dsa.update(arrPwd, 0, 12);
    /* Now that all the data to be signed has been read in, generate a signature for it */
    encPwd = dsa.sign();
    /* Now realSig has the signed password*/
    key = pub.getEncoded();
    Vector vtrPwd = new Vector(2);
    vtrPwd.add(encPwd);
    vtrPwd.add(key);
    return vtrPwd;
    catch (Exception e)
    private boolean validatePassword(byte[] arrPwd,byte[] encPwd,byte[] key) throws RemoteException
    try
    // arrPwd is the byte array of password entered by user.
    // encPwd is the encrypted password retreived from D/B
    // key is the array of key through which the password was encrypted and stored.
    X509EncodedKeySpec KeySpec = new X509EncodedKeySpec(key);
    KeyFactory keyFactory = KeyFactory.getInstance("DSA", "SUN");
    PublicKey pubKey = keyFactory.generatePublic(KeySpec);
    /* Encrypt the user-entered password using the key*/
    Signature sig = Signature.getInstance("SHA1withDSA", "SUN");
    sig.initVerify(pubKey);
    /* Update and sign the password*/
    sig.update(arrPwd, 0, 12);
    return sig.verify(encPwd);
    catch (Exception e)
    Help upto any extent would be appreciated.
    Thanx
    Moti Singh

    Hi All,
    I am storing encrypted password and enc key in the
    database.(Code included encryptPassword method for
    encryption and validatePassword method for validating
    of password). Problem is that for some reason i need
    to show user's password to the user as a string as
    he/she entered. But i am not able to convert the
    encrypted password from D/B to original String.No, you are not encrypting the password in your code, you are merely signing it.
    Tell me if any body know how to get the string
    password back from the encrypted password byte array
    after seeing my existing encryption code.It is impossible to retrieve the original text out of a signature.
    You should read up on some encryption basics in order to understand the difference between signing and encrypting. Then you can find examples of how to encrypt something here: http://java.sun.com/j2se/1.4/docs/guide/security/jce/JCERefGuide.html.
    Actually there is one class specifically for keeping keys secure, KeyStore http://java.sun.com/j2se/1.4/docs/api/java/security/KeyStore.html
    - Daniel

  • How to retrieve passwords from sapinst_dev.log?

    SDN experts:
    I remember that I  could retrieve the password from sapinst_dev.log.
    But I  forget what is the tool I used to  deciper the encrypted password.
    Could you share your ways?
    Thanks!

    Are you using the default providers? How are you creating users? Won't the
    user be authenticated by the relevant container?
    PaulF.
    [email protected] (sun) wrote in news:d7d36a26.0208291721.75a64516
    @posting.google.com:
    We are in the process of developing an application using Weblogic 7.0.
    The application requires us to create users dynamically in the
    Embedded LDAP. We have been successful in creating users, but are
    unable to find an API to retrieve the user's password. What is the way
    to authenticate a username, password against the Embedded LDAP?
    Thanks
    Sunny

  • How to get passwords of apps users

    12.0.6 and 10.2.0.2.0
    We have hundreds of users and they all have complains once in a while
    For this purpose, we need to login witht hier accounts so we have to ask them the passwords
    Is there anyway we can get to know the password from backend without asking the users
    Please advice

    Hi;
    12.0.6 and 10.2.0.2.0
    We have hundreds of users and they all have complains once in a while
    For this purpose, we need to login witht hier accounts so we have to ask them the passwords
    Is there anyway we can get to know the password from backend without asking the usersIf your question how i can learn users password wihtout asking them, My answer for this question is : its not possible. Because as i know users's password keep in db side enycrpted.
    Regards;
    Helios

  • How to get the sorted Groups in Adminstration Portal

    after adding a Child Group to the parent Group the Child Groups are not sorted.So
    how to get the sorted list when any child group is added to a parent group.In
    which class we have to make the changes to get the sorted group.

    Hi  Manorama,
    1) If you have already created a portal system as mentioned in following blog
                  /people/marcel.salein/blog/2007/03/14/how-to-create-a-portal-system-for-using-it-in-visual-composer
    2) If not, then try to create the same. Do not forgot to give the Alias name .
    3) After creating a system, log on to the VC, Create one iView.
    4) Now Click on "Find Data" button from the list which you can view in right side to Visual composer screen.
    5) After clicking on "Find Data" button, it will ask for System. If you have created your system correctly and Alias name is given properly, then your mentioned Alias name is appeared in that list.
    6) Select your system Alias name and perform search.
    7) It will display all the BAPIs and RFCs in your systems.
    8) Select required BAPI and develop the VC application.
    Please let me know if you any further problems.
    Thanks,
    Prashant
    Do reward points for useful answers.

  • How we can see logged in portal user

    hello SAP EP gurus,
    How i can know how man users are logged on my EP Portal and which user is using which report.Is there any way to find out this thing.?
    Also how we can see the performance of our portal?
    Waiting for earliest reply.
    regards
    Neeraj Pandey

    Hi,
    You can use " portal Activity Report" for this purpose.
    alternatively, if you have access to server you can check this through visual admin
    simply open visual admin,open on your servernode --services,click on Performance Tracing,click on JARM and choose what you want to see.
    its easy to use standard portal Activity Report.
    else you can use third party reports loke "google analytics" which will give the number of users logged in, what the navigation of each user, from which geographical area the user has logged in and all about the user logged into the portal and portal performance.
    you need to login with your gmail id and password and download the code and use it in you portal application... its very easy to use.
    https://www.google.com/analytics/home/
    PradeeP

  • How to get the values from form calls in user exit?

    Hi all,
    I am not getting a specific value readily in an user exit.
    ?Can any one tell me how to find what are the fields,tables available in various form calls(visible while debugging) in an user exit.
    For example sapxkl is one ofthe callls...(sapxkl)<table>[] will hold some data.how to find what r the values available for <table>.
    Thanks.
    Edited by: sanjay_ask on Apr 16, 2010 10:43 PM

    HI ,
    Use this line of code
      field-symbols: <l_fs> type any.
      data: l_value type char20.
    Get Plant
      l_value =  '(SAPLCEI0)GV_WERKS'. " Here give the program name and variable name
      assign (l_value) to <l_fs>.
      v_werks = <l_fs>.         " Instead of V_werks use you internal table
    Thanks
    Subhankar

  • How to get message in realtime sent by another user using FM TH_POPUP?

    I want to program a chat function between two SAP users by using ABAP.
    1.User A send a message to user B by using TH_POPUP,
      At the same time, the message is showed in screen as 
      'Send message'
    2.User B get the message
    ->My problem is how to get the message in realtime which I want to show it in screen as 'Received message'.
    Can anybody tell me how to get the message sent by using FM TH_POPUP in realtime?
    Edited by: Jing Yu Huang on Feb 6, 2008 2:11 AM

    Hi there
    This really isn't a "conversation" type program
    1) What does the original user do after sending the message -- I'm not sure if there's a WAIT_FOR_REPLY and even if there were I'm not sure  you'd want the original user to have a suspended session waiting for a reply.
    2) What does the 2nd user do after receiving the message --if it's just thrown up on his screen  then there isn't any mechanism to return a reply from USER A'S SESSION.
    You need somehow to have a continually running process which will send a message for example to user B and create an event or do somethimg so that User B is bound to the same session that sends the original message.
    2 different users running the same abap don't actually have any common link between them even on remote function calls.
    You need to have a central process here that shares a message space between the users (i.e a kernel type module).
    Classical Abap won't do (nor is it designed for) these types of processes.
    You might be able to find something in some of the  'C' coded kernel calls but as I previously posted before you are far better off using Windows for this type of stuff. (Windows Messenger for example).
    ABAP unfortunately is not designed as a multi user  "re-entrant"  programming language - nor was it intended to be.
    Another possible get around is to use the workflow system. User A sends a message which raises an event. This then starts a workflow which transmits say message to user B and notifies him of a message waiting for him. User B can reply which again raises an event and triggers workflow routing the message / reply back to user A.
    The response time won't be very good but at least it will work without tying up 2 user dialog sessions - but seriously guys I'd give up on this and just use Windows Messenger or equivalent system.
    These type of programs depend on a central server for the message handling - you'd have to replicate this in ABAP -- and Im 120% sure it can't be done.
    Cheers
    Cheers

Maybe you are looking for

  • How do i use a Multitimbral Sampler with Logic?

    I purchased a third party multiTimbral soft sampler. I did this so i can have 16 tracks in the arrange window, each with it's own midi channel, for use with ONE instance of this softsampler. When i create 16 tracks set to Instrument #1, i need for ea

  • How do I share my Mac's Wifi Internet with my xbox (connected through Ethernet) in 10.8 Mountain Lion?

    I am trying to use my MAC's wifi connection for my Xbox 360 using the Ethernet Cable.  I've done it in the past in an earlier version of OSX which I saved the settings in a text file for later use... those settings do not work. First Question:  Do I

  • How to break connections between 2 connected peers simultaneously ?

    Hi adobians ! I am working on RTMFP protocol and my application is just a 1-1 simple chat. When i open the application , after the netconnection success event , i get the nearID and keep waiting for the chat partner. Now i open the same application o

  • Keychain problem and "Set date and time automatically"

    Something very strange appened to me today. I spent a few hours to get it through. All starts when I decided to open System Preferences and *set date and time manually* (I lost date and time because I left my PowerBook without its battery for an hour

  • Default Workbook Template - BI 7

    Hi , When we execute the query in BI 7, We have the report in excel with basic set of functionalities like filter, tables, charts etc... Our requirement is to have the different reports to be saved in a workbook and each and every report as a seperat