Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

owa iapp assign irule

Abed_AL-R
Cirrostratus
Cirrostratus

Hi

How to assign an iRule to a virtual server in iApp template

I created iapp for owa 2010 using: f5.microsoft_exchange_2010_2013_cas.v1.6.2 , with APM authentication before

but the logout function is not working

when users click logout they don't actually logout

So i'm trying to add this irule to the VS created automatically by iapp , but without succeeding and getting this error message:

010715bc:3: The application service (/Common/owame.app/owame) has strict updates enabled, the object (Virtual Server /Common/owame.app/owame) must be updated using an application management interface.

This is the irule:

when HTTP_REQUEST {
    set apm_cookie [HTTP::cookie value MRHSession]

if { ([HTTP::uri] contains "logoff") } {
    log local0. "logoff triggered"
        HTTP::respond 302 noserver "Location" "/vdesk/hangup.php3?hangup_error=1" "Content-Type" "text/html" "Cache-Control" "no-cache, must-revalidate" Set-Cookie "MRHSession=deleted;expires=Thu, 01-Jan-1970 00:00:10 GMT;domain=[HTTP::host];path=/" Set-Cookie "LastMRH_Session=deleted;expires=Thu, 01-Jan-1970 00:00:10 GMT;domain=[HTTP::host];path=/"
        log local0. "Session removed"
    if { ([ACCESS::session exists -sid $apm_cookie]) } {
        ACCESS::session remove
        log local0. "Access Session Removed"
        }
    }
}
1 ACCEPTED SOLUTION

Hello,

 

The Strict Updates option is enabled by default on deployed iApp template. This is for protection against any kind of accidental changes to an iApp. If you want to make any changes to it e.g. adding iRule in your case, you need to disable Strict Updates and then make changes. DO NOT FORGET to Re-enable the Strict Updates again post adding iRule.

 

NOTE - It is recommended to keep the Strict Updates setting enabled and make any changes to the iApp's configuration by modifying the template. But if its not possible to modify it directly, you can disable settings for time being. This shouldn't cause any negative impact on the traffic.

 

Strict Updates setting is available under --> iApps -->Application Services -->Properties-->Advanced

 

Hope it helps!

View solution in original post

1 REPLY 1

Hello,

 

The Strict Updates option is enabled by default on deployed iApp template. This is for protection against any kind of accidental changes to an iApp. If you want to make any changes to it e.g. adding iRule in your case, you need to disable Strict Updates and then make changes. DO NOT FORGET to Re-enable the Strict Updates again post adding iRule.

 

NOTE - It is recommended to keep the Strict Updates setting enabled and make any changes to the iApp's configuration by modifying the template. But if its not possible to modify it directly, you can disable settings for time being. This shouldn't cause any negative impact on the traffic.

 

Strict Updates setting is available under --> iApps -->Application Services -->Properties-->Advanced

 

Hope it helps!