Automic Workload Automation

 View Only
  • 1.  Programmatically Update a LOGIN object

    Posted Sep 05, 2018 03:16 PM

    I am working on automation to rotate access keys for AWS we use inside various workflows that interact with the cloud.  We currently store out Access Keys/Secret Keys in LOGIN objects on the system and would like to write a workflow that creates a new access key for the service account and then automatically updates the LOGIN object with the new access key before disabling the old access key.

     

    I obviously utilize the GET_LOGIN function to pull usernames and passwords for me custom login type of AWS.  But am not finding anywhere a function that would allow you to set new username/password for a target Name/Type inside the LOGIN object.

     

    Is this possible?



  • 2.  Re: Programmatically Update a LOGIN object

    Posted Sep 05, 2018 04:08 PM

    I would check out the script function: MODIFY_OBJECT

     

    Looks like the parameter ADD can be used to update the password if the entry already exists.



  • 3.  Re: Programmatically Update a LOGIN object

    Posted Sep 06, 2018 08:11 AM

    If you're comfortable using the Java APIs, you could also use LoginDefinition.setPassword().



  • 4.  Re: Programmatically Update a LOGIN object

    Posted Sep 07, 2018 06:41 AM

    Hello,

     

    I guess using the Java API, as mentioned by Michael, is the only way to do the in an automated way.

     

    regards

    Thomas



  • 5.  RE: Re: Programmatically Update a LOGIN object

    Posted Mar 19, 2021 05:10 AM
    Edited by Michael TMO8Y2tl Mar 19, 2021 05:15 AM

    Hi,

    I've tried to use the java api for login object password update in version 12.3.4.
    For this I used LOGIN_Object.jar which is available in Marketplace.

    Update itself of the login object works fine. But unfortunately, the inserted password seems to be corrupted.

    Does someone knows if there is a special trick?

    Content of Password:


    Is setPassword() not compatible with login objects of Type "PASSWORD"?




  • 6.  RE: Programmatically Update a LOGIN object

    Broadcom Partner
    Posted Mar 20, 2021 01:46 AM
    Hi John,

    in order to change entries use MODIFY_OBJECT

    regards,
    Peter

    ------------------------------
    Capture Europe
    ------------------------------