Hi Xian
That is weird. Here is what I did to accomplish this task :
I retrieve the encrypted Active Directory password with this method :
adHost.hostConfiguration.sharedUserPassword
And here is my action code to decryt vro encrypted passwords :
var command = new Command("/usr/lib/vco-cli/bin/vro-configure-inner.sh decrypt --value " + stringToDecrypt);
command.execute(true)
var cmdResult = command.result;
var cmdOutput = command.output;
if (cmdResult != 0){
throw "Command output: " + cmdOutput;
}
var splittedResult = cmdOutput.split("\n")
var adPassword = splittedResult[splittedResult.length -3]
return adPassword;
It returns the result successfully.
Obviously you have to configure the vRO instance an mentionned before in this thread.
Configure the vro-cfg-cli :
kubectl get pods -n prelude
kubectl -n prelude exec -it vco-app-7fbc9c65cc-2vm25 -c vco-server-app -- bash
rpm -hiv --nodeps /vco-cfg-cli.rpm
And allow vRO to execute system commands by adding this property in Control Center :
com.vmware.js.allow-local-process: true