How to execute an iRule before VMware View Logon Page is presented to the user?
Hi,
In my APM policy I start with a "Client Type" box with two branches, first one being VMware View, second the default fallback. Following the first branch, the next box is "VMware View Logon Page" where I ask user to enter credentials. Then the policy continues..
Everything worked just fine but only until I decided to add another box with iRule Event right at the start of the whole chain, so in front of the "Client Type" box. It does not matter what the iRule contains, the error is still the same. It looks like the iRule box somehow changes headers sent by the VMware Horizon Client to F5, because in the APM log I get the following error:
Jul 1 19:11:53 scainli err vdi[11022]: 01490000: {87.C} Failed sending headers with error 5 : 'InvalidData'
While the VMware Horizon View Client shows error: The View Connection Server connection failed. An HTTP error occurred: status code = 500.
And the iRule looks like this at the moment:
when ACCESS_POLICY_AGENT_EVENT {
if {[ACCESS::policy agent_id] == "testRule"} {
}
}
As you can see I removed all actions from the iRule to make sure it does not alter variables or write into log file. But the result is still the same error.
LTM log file shows no errors at all. Actually when I add some logic to the iRule, the rule is executed successfully, log written in LTM log file, but then the APM kills the session.
Is there a way how to execute an iRule prior the VMware Horizon View Logon screen is shown to the client?
Thanks for any ideas.