Forum Discussion
Pull information from Active Directory - by iRule
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
3 Replies
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- Liat
Nimbostratus
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"
}
- PSFletchTheTek
Cumulonimbus
Out of interest, why in a iRule?
It's really easy in the APM policy.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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