VMware Cloud Community
BigBlueMike
Enthusiast
Enthusiast
Jump to solution

Trying to set Security.AccountLockFailures through vRO fails.

I am trying to set the advanced settings Security.AccountLockFailures or Security.AccountUnlockTime but they fail with "The request refers to an unexpected or unknown type".

I have been setting other advanced settings the same way successfully but on the new Security parameters it is failing. I don't know if I am doing something wrong or there is a bug in vRO.

I am using vRO appliance

Version: 6.0.2

Build Number: 2700137

var hostSetting = new Array();

hostSetting[0] = new VcOptionValue();

hostSetting[0].key = "Security.AccountLockFailures";                    

hostSetting[0].value = 3;

host.configManager.advancedOption.updateOptions(hostSetting);

Help is much appreciated. Thanks.

1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi,

The scripting code should be:

var hostSetting = new Array();

hostSetting[0] = new VcOptionValue();

hostSetting[0].key = "Security.AccountLockFailures";                   

hostSetting[0].value_IntValue = 3;    //  note that instead of 'value' you need to use 'value_IntValue'

host.configManager.advancedOption.updateOptions(hostSetting);

Also, documentation mentions that updateOptions() method might require Host.Configuration.AdvancedSettings (or Host.Config.AdvancedConfig) privileges on the host, so please make sure that you have these privileges.

View solution in original post

2 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi,

The scripting code should be:

var hostSetting = new Array();

hostSetting[0] = new VcOptionValue();

hostSetting[0].key = "Security.AccountLockFailures";                   

hostSetting[0].value_IntValue = 3;    //  note that instead of 'value' you need to use 'value_IntValue'

host.configManager.advancedOption.updateOptions(hostSetting);

Also, documentation mentions that updateOptions() method might require Host.Configuration.AdvancedSettings (or Host.Config.AdvancedConfig) privileges on the host, so please make sure that you have these privileges.

BigBlueMike
Enthusiast
Enthusiast
Jump to solution

Ilian thank you very much for your quick response and thank you for your help.

Seems value_IntValue did the trick. I checked it with Onyx and there it used value = 3. Lesson learned, don't trust Onyx.

Reply
0 Kudos