19-May-2022 06:05
Hi,
As part of SSO solution, I would like to pull information (username and password) from Active Directory - by iRule.
The APM integrated with Active directory.
Currently the username and password are hardcodede , see attached current iRule :
I wish to pull the following credentials Source (from the AD) :
Username Source is: session.sso.token.last.username
Password Source is : session.sso.token.last.password
Need your assistance to rewrite the iRule please
19-May-2022 06:08
Out of interest, why in a iRule?
It's really easy in the APM policy.
19-May-2022 16:02
Hi @Liat ,
I suggest checking out this article, K74392192: How to insert APM Variables in backend headers to the application server which discusses how to retrieve session variable information and insert them into the back-end request's headers. Just change the header and variable names to match up with your specific needs.
Thanks,
Josh
22-May-2022 06:13
Hi @JoshBecigneul ,
Thanks for your kind assistance , i am missing something , it still doesnt work 🙄
i would highly appritiate your help, see attached, current iRule:
when HTTP_REQUEST {
#HTTP::header replace "Host" "10.10.21.11"
}
when ACCESS_ACL_ALLOWED {
HTTP::header insert "username" "session.sso.token.last.username"
HTTP::header insert "userpass" "session.sso.token.last.password"
}