e.g.)
root@vc [ ~ ]# dcli com vmware vcenter host list
Username: [email protected]
Password: **********
Do you want to save credentials in the credstore? (y or n) [y]:y
Error: Unable to authenticate user.
Server error: com.vmware.vapi.std.errors.Unauthenticated
Error message:
Authentication required.
root@vc [ ~ ]# dcli com vmware vcenter host list
Error: Unable to authenticate user.
Server error: com.vmware.vapi.std.errors.Unauthenticated
Error message:
Authentication required.
Steps to remove saved credentials
dcli +credstore-list
example output:
- type: vapi
server: http://localhost/api
session_manager: com.vmware.cis.session
user: [email protected]
dcli +credstore-remove +server <server url> +username <user>
example:
dcli +credstore-remove +server http://localhost/api +username [email protected]