cancel
Showing results for 
Search instead for 
Did you mean: 

Pull information from Active Directory - by iRule

Liat
Nimbostratus
Nimbostratus

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 :WhatsApp Image 2022-05-19 at 3.21.09 PM.jpeg

 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 3

PSFletchTheTek
Cirrocumulus
Cirrocumulus

Out of interest, why in a iRule?
It's really easy in the APM policy.

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

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"
}