vmware / idm

MIT License
51 stars 30 forks source link

Issues setting user passwords via API #17

Closed 5280tunage closed 2 years ago

5280tunage commented 2 years ago

Describe the bug

Based on numerous articles found on both VMW websites as well as third party websites, we should be able to manually set user passwords in vidm via the API. However, I am completely unable to manually set passwords for local users in the system domain/system directory. I am currently using Postman to attempt to complete this.

All other get transactions work just fine.

When committing the change, I'm receiving this error: { "Errors": [ { "code": "400", "description": "Cannot set a password for this user." } ] }

Reproduction steps

1.  Commit patch action via API using Postman
2.  Attempt to manually set a password during a user creation process via API in Postman
3.  Currently using vidm version 3.3.6.0 Build 19203469
...

Expected behavior

Would expect to be able to set password for local users in the local system directory, local system domain.

Additional context

This vidm environment is in a closed environment, no SMTP server or outbound SMTP to the internet, thus preventing me from using that as a password reset function. I really wish vidm had an appliance wide setting that allowed for other password reset options, like a builtin password reset page.

5280tunage commented 2 years ago

Also, just to add one of those articles that describes this procedure: https://kb.vmware.com/s/article/83586

and/or

https://virtualinca.com/reset-local-user-password-in-vmware-identity-manager-vidm-via-rest-api-using-postman/

5280tunage commented 2 years ago

Sadly I never got a response from anyone, no real fix it seems. Only thing I could do was completely blow away everything and start from scratch.