Forum Discussion

wolfschen's avatar
wolfschen
Icon for Nimbostratus rankNimbostratus
Apr 19, 2021

iRule for switch between two services

Hi, I'm new in F5 world and I'm facing with one problem: I have a Virtual Server where I want do following configuration: I have backend server where are some architectural limitations for my application and I can't use mixed of local authentication (for some users) and AD authentication for rest of them :\

That is why I have on one server where are two instances of mine application. With two different pools there is no problem: just this same node with diffrent port to configure and job done.

But there is a strange behaviour which I couldn't find how to deal with it:

  • AD authentication is made with special prepared link: https://myservice.local/AD - after authentication page is redirected to main page: https://myservice.local/start
  • Main website is availible on https://myservice.local/start

 

After AD Authentication I am jumping direct to main Website. I tried first go with iRule:

when HTTP_REQUEST {

  if { [string tolower [HTTP::uri]] contains "ad" } {

    pool AD_pool

}

else {

    pool without_AD

    }

}

Works great just only with https://myservice.local/AD. After authentication app made get to main website and connection is switching to pool without AD.

 

And I'm facing with wall and can't go forward.

 

I hope anyone can helped me to get rid with that mess.

 

Regards,

Karl

 

  • Please review the text as I don't get question. I think you have some misspelled words and this is why I don't get the idea.

     

     

     

    *********

     

    Works great just only with https://myservice.local/AD. After authentication app made get to main website and connection is switching to pool without AD.

     

    And I'm facing with wall and can't go forward.

     

    I hope anyone can helped me to get rid with that mess.

     

     

    *********

    ********