Forum Discussion
i-rule header insert - APM
Hi,
I built this irule.
when HTTP_REQUEST {
#HTTP::header replace "Host" "x.x.x.x"
}
when ACCESS_ACL_ALLOWED {
HTTP::header insert "username" "user name value"
HTTP::header insert "userpass" "password value"
I want to change the user name value and the password value to parameters from Active Directory.
How can I do that?
Thtanks.
Try:
HTTP::header insert "userpass" [ACCESS::session data get -secure session.sso.token.last.password]
But I would NOT write the password in a http header.
Check out this: https://support.f5.com/csp/article/K74392192
- Oudi_Cohen_KashAltocumulus
when HTTP_REQUEST {
#HTTP::header replace "Host" "x.x.x.x"
}
when ACCESS_ACL_ALLOWED {
HTTP::header insert "username" [ACCESS::session data get session.sso.token.last.username]
HTTP::header insert "userpass" [ACCESS::session data get session.sso.token.last.password]
}I configure this, and it's insert the username correct but no the password.
any idea ?
Try:
HTTP::header insert "userpass" [ACCESS::session data get -secure session.sso.token.last.password]
But I would NOT write the password in a http header.
Recent Discussions
Related Content
* 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