# How to pass text for a password field in restconf post body data

**URL:** <https://dmap-community.ductus.global/t/how-to-pass-text-for-a-password-field-in-restconf-post-body-data/3066>\
**Category:** Other Northbound Interfaces\
**Created:** [May 25, 2020, 10:37am UTC](https://dmap-community.ductus.global/t/how-to-pass-text-for-a-password-field-in-restconf-post-body-data/3066 "2020-05-25T10:37:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skbits](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@skbits](https://dmap-community.ductus.global/u/skbits)\
**Post date:** [May 25, 2020, 10:37am UTC](https://dmap-community.ductus.global/t/how-to-pass-text-for-a-password-field-in-restconf-post-body-data/3066/1 "2020-05-25T10:37:26Z")

</div>

I tried setting the password for a user using CLI  
**aaa authentication users abcd config set-password**  
It prompted me for a password on the CLI and commit was successful after giving the password.  
I am using tailf:cli-only-in-autowizard;

How can I make this operation work from RESTCONF.  
How do I send the password data thru REST call. When I try to send the plain text I am receiving an application error saying malformed-message.

---

<div class="post-metadata">

**Author:** ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)\
**Post date:** [May 25, 2020, 6:42pm UTC](https://dmap-community.ductus.global/t/how-to-pass-text-for-a-password-field-in-restconf-post-body-data/3066/2 "2020-05-25T18:42:34Z")

</div>

Prefix the clear text with `$0$`  
See the confd\_types(3) man page under section “The iana-crypt-hash YANG module”
