Jump to content
Welcome to our new Citrix community!

Rewrite rule to add domain after username


tktzin172

Recommended Posts

String for examle: StateContext=&loginBtn=Logon&password=my.password&saveCredentials=false&username=any.username

With a rewrite rule, I like to change that into:

StateContext=&loginBtn=Logon&password=my.password&saveCredentials=false&username=any.username@my-domain.com

 

I can search for "&username=" and add @my-domain.com, but the result would be: @my-domain.comany.username

and not as I would like any.username@my-domain.com

Rewrite Rule so far:

Replace_All

HTTP.REQ.BODY(100000).SET_TEXT_MODE(ignorecase)
add rewrite action act_rw_add_dom replace_all "HTTP.REQ.BODY(100000).SET_TEXT_MODE(ignorecase)" "\"&username=\" + \"%40my-domain.com\"" -search "text(\"&username=\")"

 

Any idear?

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...