Jump to content
Welcome to our new Citrix community!

Regex issue


Recommended Posts

Hi,

I am trying to write a policy to detect if a user tries to sign in to a webapp with a UPN username and rewrite it to domain\username, e.g. test@domain.com to domain\test. Unfortunately when the NetScaler rewrites it, it is carrying across the @ from the upn. Here's the action:

 

Expression to choose target location:

HTTP.RES.BODY(100000).REGEX_SELECT(re#.*@.*#)

(this successfully detects if the UPN name is entered)

 

Expression:

"domain\\" + HTTP.RES.BODY(100000).REGEX_SELECT(re#(.*)@#)

 

The NetScaler rewrites it as domain\test@

 

Many thanks.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...