APIPythonOpen-Source Solutions

 View Only
  • 1.  How to reset the sysadmin and delphix admin password with 3rd party tool? or with API?

    Posted 04-05-2018 11:19:00 AM
    How to reset the sysadmin and delphix admin password with 3rd party tool? or with API?
    Steps:

    Suppose we need to change the password for sysadmin and delphix admin every month as security reason  then how we can do it with 3rd party tool like cyber ark or any other tools?

    Sysadmin and delphix Admin user are non LDAP users.

    If we have API to reset the password please let me know or let me know complete process 



    #Masking
    #Virtualization


  • 2.  RE: How to reset the sysadmin and delphix admin password with 3rd party tool? or with API?

    Posted 04-05-2018 01:50:00 PM
    Hello Pankaj,
                       Login as delphix_admin, and get user reference for both users by running below command.

    dlpx-vm> user list display=name,reference

    NAME           REFERENCE

    sysadmin       USER-1

    delphix_admin  USER-2 


    To change the delphix_admin password, log in as the delphix_admin user and use below API call.

    POST /resources/json/delphix/user/USER-2/updateCredential

    {

        "type": "CredentialUpdateParameters",

        "newCredential": {

            "type": "PasswordCredential",

            "password": "<newpassword>"

        }

    }


    To change sysadmin password, log in as the sysadmin user and use below API call.

    POST /resources/json/delphix/user/USER-1/updateCredential

    {

        "type": "CredentialUpdateParameters",

        "newCredential": {

            "type": "PasswordCredential",

            "password": "<newpassword>"

        }

    }

    ~Thanks
    Jatinder


  • 3.  RE: How to reset the sysadmin and delphix admin password with 3rd party tool? or with API?

    Posted 04-09-2018 11:20:00 AM
    Hi Jitinder.

    Could you please tell me exact CURL command for the  to chnage or to reset the password ?


  • 4.  RE: How to reset the sysadmin and delphix admin password with 3rd party tool? or with API?
    Best Answer

    Posted 04-10-2018 01:24:00 PM
    Hello Pankaj,
                        Please try using below curl command.


    curl -X POST -k --data @- http://<engineaddr>/resources/json/delphix/user/USER-2/updateCredential \
    -b cookies.txt -H "Content-Type: application/json" <<EOF

    { "type": "CredentialUpdateParameters", "newCredential": { "type": "PasswordCredential", "password": "<newpassword>" } }
    EOF


    ~Thanks
    Jatinder