if ( strLength($server_password_value_of$) = "0" )
    Set $server_password_value_of$ = RandomStr
	Set $server_password_value_of$ = strPart($server_password_value_of$,"1","8")
    opsiservicecall_server_password_value_of
endif

if ( strLength($server_controlpassword_value_of$) = "0" )
    Set $server_controlpassword_value_of$ = RandomStr
	Set $server_controlpassword_value_of$ = strPart($server_controlpassword_value_of$,"1","8")
    opsiservicecall_server_controlpassword_value_of
endif

if ( strLength($server_viewonlypassword_value_of$) = "0" )
    Set $server_viewonlypassword_value_of$ = RandomStr
	Set $server_viewonlypassword_value_of$ = strPart($server_viewonlypassword_value_of$,"1","8")
    opsiservicecall_server_viewonlypassword_value_of
endif

[opsiservicecall_server_password_value_of]
"method": "setProductProperty"
"params": [
"$ProductId$",
"server_password_value_of",
"$server_password_value_of$",
"%opsiserviceUser%"
]

[opsiservicecall_server_controlpassword_value_of]
"method": "setProductProperty"
"params": [
"$ProductId$",
"server_controlpassword_value_of",
"$server_controlpassword_value_of$",
"%opsiserviceUser%"
]

[opsiservicecall_server_viewonlypassword_value_of]
"method": "setProductProperty"
"params": [
"$ProductId$",
"server_viewonlypassword_value_of",
"$server_viewonlypassword_value_of$",
"%opsiserviceUser%"
]

