Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there an easy way to change credentials for vcenters in credential store #266

Closed
danilansible opened this issue Jul 7, 2021 · 6 comments
Assignees

Comments

@danilansible
Copy link

Hi ,

Is there an easy way to change credentials for vcenters in credential store other than "deleting and readding vcenter"
As part of security policy, password changes every 2 months so it would be great to know if there is a way to update new password in credential store

@rschitz
Copy link
Member

rschitz commented Jul 7, 2021

Hi, i can give you the commands to automate the remove/add item in the credential store, would that suits you? We dont have api (yet) for this i'm sorry.

@rschitz rschitz self-assigned this Jul 7, 2021
@danilansible
Copy link
Author

That would be very helpful raphael @rschitz
can you please share that

@danilansible
Copy link
Author

Hi @rschitz

Can you share the commands if you get a chance.

@rschitz
Copy link
Member

rschitz commented Jul 9, 2021

/usr/lib/vmware-vcli/apps/general/credstore_admin.pl --credstore /var/www/.vmware/credstore/vicredentials.xml remove --server vcenter.vmware.local --username login

/usr/lib/vmware-vcli/apps/general/credstore_admin.pl --credstore /var/www/.vmware/credstore/vicredentials.xml add --server vcenter.vmware.local --username login --password Pa$$w0rd

@danilansible
Copy link
Author

Much appreciated @rschitz
Again, such a great project this is !

@rschitz
Copy link
Member

rschitz commented Jul 10, 2021

You're welcome, it's going to be powershell in the future but i'll update this issue when it's done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants