Forum Discussion
Aug 05, 2010
Preserving user name and password/passing variables
Hello All,
Is there any way to hold the user name/password values in a variable using IRules?
Can we pass a variable from IRule to another IRule?
ex)
When going from from http to https triggere...
hoolio
Cirrostratus
Aug 10, 2010Hi TRX,
You could use a blank stream profile and STREAM::expression based iRule to rewrite the response content for the login page(s) to change the form action from a local reference to an absolute reference to https. See the STREAM::expression wiki page for details:
http://devcentral.f5.com/Wiki/default.aspx/iRules/stream__expression
Also, you can save the user/pass to variables in an iRule. If you need to share them across TCP connections, you could use the session table or in 10.x, you can use tables:
http://devcentral.f5.com/Wiki/default.aspx/iRules/session
http://devcentral.f5.com/Wiki/default.aspx/iRules/table
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
