Reset Search
 

 

Article

KB44814 - How to update password in clear text using REST API

« Go Back

Information

 
Last Modified Date5/27/2021 11:17 AM
Synopsis
Example: Updating password of System Local User
Problem or Goal
If the user account is created under GUI then by default "strong hash and password salt" parameter will append for security and you will not be able using password-cleartext. These two are mutually exclusive ones
However, if the user is created through REST, it won't have a salt until the password is modified. 
Cause
This is working as per the design and below step will solve the problem and will not be any impact 
Solution
Request: 
PUT /api/v1/configuration/authentication/auth-servers/authserver/System%20Local/local/users/user/user0001/password-cleartext HTTP/1.1
Host: 10.209.112.106
Authorization: Basic
T0o1dzVpK3g4U0dKV0d1TkJCdWlwVzREaUc0SjZvbkExMVljc0RtNU14bz06
Content-Type: application/json

{
    "password-cleartext": "Psecure",
    "password-hash-format": "strong-hash",
    "password-salt-cleartext": ""
}
Response:
{
    "result": {
        "warnings": [
            {
                "message": "The configuration has been implicitly changed"
            }
        ]
    }
}

 
Related Links
Attachment 1 
Created Bys ramkumar

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255