Forum Discussion

Chad_20106's avatar
Chad_20106
Icon for Nimbostratus rankNimbostratus
Apr 06, 2009

irule to pass on User ID and Password

We have a sharepoint site that will house our customer catalogs. Each customer will log into it's onw customized sharepoint site residing on the same sharepoint instance. One of our global accounts wants to do this without having to log in. I know I can set up an irule to allow from a certain IP range (public address of customer)to a specific URL but is there a way to then have the F5 via irules pass on a user ID and password in order to give them read only access to the site?

 

 

We have a BIG IP 3600 serise with LTM and ASM running on it.

 

 

Thanks

1 Reply

  • What is the authentication type (basic, ntlm, etc)? If you don't want to use source IP address, what component of the request would you want to use to know when to insert the credentials in a request?

    For basic auth, you could insert the header using an iRule like this:

     
     when HTTP_REQUEST { 
      
         Check if some condition is true 
        if {$allow_access==1}{ 
      
            Insert the authorization header with the base64 encoded username:password 
           HTTP::header replace Authorization "Basic: dXNlcm5hbWU6cGFzc3dvcmQ=" 
        } 
     } 
     

    Aaron