Hi,
For context, I use ClearPass Guest 6.7.8.109113.
I am trying to manage guests account via REST API.
Almost everything works as expected but I gt an issue with guest's password :
- if I submit it at account creation (POST request), it is not taken and the guest does not get a password ;
- if I update (PATCH request) the account, the existing password is simply deleted.
In both cases I got HTTP 200 returned. An examle is following.
I don't know if I missed something, but if you have clues I gladely take them.
Regards.
Example :
JSON submitted for POST request on
https://clearpass.myplace.com/api/guest
{
"do_expire": 1,
"create_time": null,
"current_state": null,
"email": "mail@example.com",
"enabled": true,
"expire_time": 1580597999,
"id": null,
"mac": null,
"notes": "No note",
"password": "9xdc2vuz",
"role_id": 2,
"simultaneous_use": 5,
"sponsor_email": "sponsor-mail@example.net",
"sponsor_name": "Sponsor",
"start_time": 1580488657,
"username": "testUsername",
"visitor_company": "Company",
"visitor_name": "Visitor name"
}
=> returns HTTP 200
=> In Guests / Manage guests :
If I reset the password in tis interface :
Then the password become visible (and printable on receipt which was not before) :
Then if I PATCH via the API with this JSON submitted to
https://clearpass.myplace.com/api/guest/3077
{"password":"yop10yop"}
=> It returns HTTP 200
And if I go back to the web interface, the account does not have a password anymore