Forum Discussion

sam_111661's avatar
sam_111661
Icon for Nimbostratus rankNimbostratus
Dec 29, 2008

tmm_auth_subscription

I'm following the recommendation on the Wiki regarding the AUTH::subscribe http://devcentral.f5.com/wiki/default.aspx/iRules/AUTH__subscribe.html

 

It says "Instead of calling AUTH::subscribe directly, we recommend setting tmm_auth_subscription to "*" when using the built-in system auth rules in the interest of forward-compatibility".

 

 

My question is, where it is recommended to set this? I have tried to use "when RULE_INIT" but didn't work for me, it works with "when CLIENT_ACCEPTED", any obvious reason why it doesn't work with the RULE_INIT? I have set there many variables that do not change and they work fine

 

 

Thanks in advance

 

2 Replies

  • Hi,

     

     

    tmm_auth_subscription is a local variable read in the system iRules (found in /config/profile_base.conf). When you set any variable in RULE_INIT, it's created as a global variable. When you set tmm_auth_subscription in any non-RULE_INIT event using set tmm_auth_subscription "*" without the :: in the variable name, it's set as a local variable.

     

     

    Aaron