我试图以编程方式生成*.rdp文件以连接到通过vCloud Director 5.1 API调配的VM。 在Mac OSX Mavericks上使用远程桌面连接打开RDP。 我configuration以下设置(ruby,使用雾gem v1.20.0):
customization = @vm.customization customization.enabled = true customization.admin_password_enabled = true customization.admin_password_auto = false customization.script = "foo" customization.admin_password = "bar" customization.use_org_settings = true customization.join_domain_enabled = true customization.change_sid = true
链接到我正在进行的vCloud Director API调用
在vCloud Director控制台中,我可以validationVM是否启用了guest虚拟机自定义,是否允许本地pipe理员密码,并将该密码指定为bar 。 VM也可以join一个域,并被设置为使用组织的域。 右键单击虚拟机,我可以下载*.rdp文件。
当我打开RDP文件,我注意到一些事情: User name段默认为Administrator 。 Password和Domain字段为空。
由于use_org_settings和join_domain_enabled为true,因此可以从vCloud Director控制台的Administration> Guest Personalization中获取Domain信息。
所以User name段应该保持原样, Password字段设置为bar ? 这似乎应该是这样,但每次我尝试我收到一个错误The credentials that were used to connect to xxx.xxx.xxx.xxx are incorrect. Please enter your credentials again. The credentials that were used to connect to xxx.xxx.xxx.xxx are incorrect. Please enter your credentials again. 我对Windows服务器pipe理不够熟悉,不知道我可能会丢失什么 – 似乎我应该使用其他用户,但是vCloud并没有给出任何关于本地pipe理员用户名的说明。
vCloud没有给出任何关于本地pipe理员用户名可能的说明。
vCloud可能不知道。 有默认的GPO选项来更改本地pipe理员帐户的名称,许多SA认为这是最佳做法,因为存在对默认用户名运行powershell攻击的僵尸程序。
所以,你需要:
当然,这是假定内置的本地pipe理员帐户存在并被启用。 也不一定是真的。