IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

decode the password

webMethods Community Member

webMethods Community MemberWed December 26, 2012 11:12 AM

webMethods Community Member

webMethods Community MemberWed July 03, 2013 01:16 PM

  • 1.  decode the password

    Posted Fri February 10, 2006 02:02 PM

    Hi,

    I am retrieving the connection properties using wm.art.admin.connection:getResourceConfiguration java service. One of the parameters of the connection is a password. I am using the password to connect to an FTP server. When i retrieve the password, it is encoded. As it is encoded, i am not able to connect. Can anyone suggest a method to decode the password? Is there any IS API?

    thnx,
    Poornima


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: decode the password

    Posted Fri February 10, 2006 02:30 PM

    i figured it out myself. I used StringUtil.decString(encoded) from com.wm.pkg.art.util which is in WmART package


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 3.  RE: decode the password

    Posted Sat February 11, 2006 05:25 AM

    I tried to import the class from com.wm.pkg.art.util.*, but i understand that we cannot import the class files. We can import only packages. I looked into few threads which deal with the same, but didnt get the soln to this. Can anyone help me in this regard.

    thnx


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: decode the password

    Posted Sat February 11, 2006 11:56 AM

    Have you tried setting dependency for your package of WmART package? It should allow you to import classes from WmART package.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 5.  RE: decode the password

    Posted Mon February 13, 2006 05:27 AM

    I did set the dependency of my package to WmART, but still i am unable to import the classes. Is there any other method to use it?


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: decode the password

    Posted Thu August 17, 2006 04:02 PM

    to use this tip, you need to define a depedency in your package where you make your java code to StringUtil.
    You specify all the java packages.
    You reload the wme package so the classpath is updated

    and it’s worked !


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 7.  RE: decode the password

    Posted Tue December 18, 2012 01:39 PM

    In IS version 8, softwareAg has changed the way password is stored I guess because when you run this service(wm.art.admin.connection:getResourceConfiguration) in IS version 8, it just returns “password.”. Does anyone have any idea how to get the encrypted password again ?


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 8.  RE: decode the password

    Posted Tue December 18, 2012 06:03 PM

    the same: com.wm.pkg.art.util.StringUtil.decString(inStr) can still be used, and you still need to make the package dependency of WmART before you can call it.


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 9.  RE: decode the password

    Posted Wed December 19, 2012 08:39 AM

    Sorry for not being cleared in my earlier post, I understand how to decrypt the password, the thing is the way you used to retrieve encrypted passwords has changed.Earlier we used “wm.art.admin.connection:getResourceConfiguration” service to retrieve encrypted passwords which were in the “parameters” documentList, but now the variable contains “password.” where “password” is a constant and not the actual encrypted password. Any idea how to retrieve actual encrypted password of the connection.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 10.  RE: decode the password

    Posted Wed December 19, 2012 06:26 PM

    in my 8.0.1 version, i can still see the encrypted password in parameters when calling wm.art.admin.connection:getResourceConfiguration
    Are you running 8.2 or newer, i guess they change it later.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 11.  RE: decode the password

    Posted Sun December 23, 2012 08:57 AM


  • 12.  RE: decode the password

    Posted Wed December 26, 2012 11:12 AM


  • 13.  RE: decode the password

    Posted Mon January 07, 2013 07:20 PM

    Hi,
    I have a similar way to get the password connection on 8.2.*.

    I retrieve the encrypted password with the following service :
    “void com.wm.pkg.art.admin.ARTAdmin.getConnectionData(IData);” with an input String called “connectionAlias” that contains the node name of my connection. (you have to import com.wm.pkg.art.admin.ARTAdmin and have WmART as dependancy)

    As result you get a “parameters” list of document that contain the encrypted password chain. Then you can use the decrypt function explained in previous post.

    hope it helps,


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 14.  RE: decode the password

    Posted Tue July 02, 2013 02:17 PM

    I have made WmART a dependency in my package but still cannot import com.wm.pkg.art.admin.ARTAdmin.
    Any ideas?


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 15.  RE: decode the password

    Posted Tue July 02, 2013 05:28 PM

    What exact package you are saying dependency here? Is your custom package dependent on WmART you mean to say?

    Is the WmART package shows enabled in the ISAdmin management packages?


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 16.  RE: decode the password

    Posted Wed July 03, 2013 07:14 AM

    Yes, my custom package, lets call it RadekPkg, is dependent on WmART. Is that correct?

    Of course WmART is enabled.

    I have contacted SAG Support and they say in 7.1.2 Core_Fix43 and 8.2.2 Core_Fix5 all Adapter Runtime connections store the password in the passman store, and the password handle - in the connection node.

    So now the question is how to get that password to JDBC/SAP/Salesforce connection from the passman store?


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 17.  RE: decode the password

    Posted Wed July 03, 2013 10:59 AM

    So did you also check with SAG support how to get handle on the password retrieval from store?


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 18.  RE: decode the password

    Posted Wed July 03, 2013 11:45 AM

    They suggested following approach (for Adapter connection migration)

    1.- Over IS 7.1.2 set watt property watt.art.connection.nodeVersion=1
    This will switch to the old behavior (embed the password in the connection node)
    2.- Restart IS 7.1.2
    3.- Disable connections
    4.- Export them
    5.- Import connection package into IS 8.2.2
    6.- Restart IS 8.2.2
    7.- Enable the connections

    so basically do the above so I don’t need to get pass from store.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 19.  RE: decode the password

    Posted Wed July 03, 2013 12:51 PM

    Thanks for sharing notes.

    At what IS712 core fix level this watt can be set do you know?

    watt.art.connection.nodeVersion


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 20.  RE: decode the password

    Posted Wed July 03, 2013 12:58 PM

    For 7.1.2 since Core_Fix43
    For 8.2.2 since Core_Fix5


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 21.  RE: decode the password

    Posted Wed July 03, 2013 01:16 PM