Forum Discussion
when CLIENT_ACCEPTED {
set cookie 1 set gotpath 0
set smsession ""
set def_pool [LB::server pool] set sm 0
}
when HTTP_REQUEST {
if { $gotpath == 0 && $sm == 0 } {
pool Rachel_test_8080
[HTTP::uri] /OAuthDemo/cookiegenerator.html
set request_headers [HTTP::request]
set gotpath 1
} elseif {
$sm == 1 } {
pool $def_pool
}
}
when HTTP_RESPONSE {
log local0. "http_response: cookie:test22=$cookie status:test22=[HTTP::status]; sm=[HTTP::cookie exists "SMSESSION"]"
if { [HTTP::cookie exists "SMSESSION"] } {
set smsession "SMSESSION=[HTTP::cookie value SMSESSION]"
set sm 1
}
if { [HTTP::status] == 404} {
HTTP::retry $smsession
}
So I understand: Rachel_Test is the Siteminder Pool... Correct ? "You should look for a girl named Sideminder I think ;-)"
Is, "xmppwst.airservices.eds.com" and "xmppt.airservices.eds.com" resolving on the same virtual ?
Should the Browser go to xmppt.airservices.eds.com or should the connection flow go User BIG-IP1 (VS xmppt.airservices.eds.com) pool Rachel_Test_8080 which is BIG-IP2 (VS xmppt.airservices.eds.com) ?
Normally we build szenarios with Authentication Virutuals using Redirects. In a Redirect you may pack in, Username&Password&originalURI, and on the second BIG-IP you would store this, detect successful login and initiate a Redirect back to BIG-IP 1 (originalURI) including the Cookie aso. Attention, cookie will not be submitted to another Domain, so Authentication should be made doing a redirect to same host but different URI "/OAuthDemo/cookiegenerator.html" and if the URI in a request is /OAuthDemo/cookiegenerator.html you will select the other pool with the authentication Server.
when HTTP_REQUEST {
if { [HTTP::uri] ends_with "/OAuthDemo/cookiegenerator.html"} {
pool Rachel_test_8080 }
else {
pool $def_pool
}