Announcement Banner
UNSOLVED

bbbsd

updated

1 month ago

Closed

B

bbbsd

5 Posts

0

403

June 2nd, 2023 12:00

update credential passwords via API

I'm trying to update a credential account via REST API.  I can successfully retrieve the credential information, though the passPhrase comes back as _MASKEDPARAPHRASE_@159753.  If I set the paraPhrase to what I would like it to be, and submit it back, I get 'Credential account updated successfully'.  So that appears to work, but hard to verify.  Further, when I look at secure connect gateway after trying this, it appears that connections to my devices are unsuccessful, so I think I must not be doing something right, so I'm looking for advice/guidance/examples, etc.

  • DELL-Young E

    Moderator

    •

    5421 Posts

    •

    37 Points

    281

    0

    Posted June 4th, 2023 20:00

    Hello thank you for choosing Dell. Would this help? https://dell.to/3NbDT8F

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

  • bbbsd

    5 Posts

    278

    0

    Posted June 5th, 2023 06:00

    That's what I'm using.  I do a get by ID, the paraPhrase comes back as _MASKEDPARAPHRASE_@159753.  If I change the paraPhrase in the json and try to put it back with the edit credential account method, it looks like it works, but connections fail so it appears the passwords really aren't being updated correctly.

  • Dell-Martin S

    Moderator

    •

    3828 Posts

    •

    25645 Points

    276

    0

    Posted June 5th, 2023 07:00

    Hi,

    please try a clean reinstallation from SCG.

     

     

    with kind regards Martin/ Liebe Grüße Martin

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

    DELL-Martin S

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell


  • bbbsd

    5 Posts

    275

    0

    Posted June 5th, 2023 07:00

    I'm not sure what you mean.  Build a new SCG appliance?  Create a new credential?  

  • Dell-Martin S

    Moderator

    •

    3828 Posts

    •

    25645 Points

    271

    0

    Posted June 5th, 2023 07:00

    Hi,

    A complete clean reinstall from the beginning.

     

    with kind regards Martin/ Liebe Grüße Martin

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

    DELL-Martin S

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell


  • DELL-Chris H

    7 Practitioner

    •

    9682 Posts

    •

    48046 Points

    258

    0

    Posted June 5th, 2023 12:00

    Thank you. Let me look into this and I will let you know what I see.

     

    DELL-Chris H

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

  • DELL-Chris H

    7 Practitioner

    •

    9682 Posts

    •

    48046 Points

    260

    0

    Posted June 5th, 2023 12:00


    bbbsd,

     

    I will need to research this further, to see if this is a security issue or not, seeing that once authentication fails it isn't restoring it. Now I assume that if you delete the credentials and recreate it with correct password it works normally?

     

    Let me know.

     

    DELL-Chris H

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

  • bbbsd

    5 Posts

    259

    0

    Posted June 5th, 2023 12:00

    If I manually put in the correct password, it works fine.  It doesn't work when I try to set the password via the API.

  • bbbsd

    5 Posts

    261

    0

    Posted June 5th, 2023 12:00

    I have done a fresh install.  If I create a credential with the correct password I can add a device.  If I create a credential with an incorrect password, then use the API to allegedly update the password, I cannot use the credential to add a device.  My python updates come back with 'Credential account updated successfully'.  Is there something that needs to be done to the password before it is sent to the API?