Carl_Brothers
Mar 30, 2009Employee
string map - Does it accept variables
Here is the case I am working around and hopefully it is just my ignorance of TCL constructs:
One SAP portal responds to many FQDNs and the FQDN determines to a small extent what the customer sees and controls how they log into the system.
When they log off the people using the "special" FQDNs are to be redirected to the original login page rather than the SAP page that requires NTLM auth.
Want this line to work, but it does not:
HTTP::header replace Location [string map -nocase {($uriLogoff) ($uriSSO)} [HTTP::header Location]]
HTTP::header replace Location [string map -nocase {"/actual/logoff/uri/that/requires/NTLM" "/long/path/to/login/page/without/NTLM"} [HTTP::header Location]]
Thanks in advance.