Forum Discussion
jhuetten
Apr 27, 2017Nimbostratus
We have/had the same problem. To get rid of the domain, I've modified your iRule. Now you just have to enter username and password in the Citrix Receiver.
when HTTP_REQUEST {
if { [HTTP::uri] eq "/AGServices/discover" } {
HTTP::redirect "/vpn/index.html"
}
if { [HTTP::uri] starts_with "/Citrix/" } {
if {[HTTP::header content-type] starts_with "text/xml"}{
log local0. "*** Authentication Citrix Receiver ***"
HTTP::collect [HTTP::header Content-Length]
set ContentLength [HTTP::header Content-Length]
}
}
}
when HTTP_REQUEST_DATA {
Please set your domain here
set Domain "domain.local"
set Payload [HTTP::payload]
set NewDomain "$Domain"
log local0. "*** Replacing received domain \"$OldDomain\" with \"$Domain\" to \"$NewDomain\" ***"
regsub -all $OldDomain $Payload $NewDomain Payload
HTTP::payload replace 0 [HTTP::payload length] $Payload
HTTP::release
}
(Edit: Some minor changes in the iRule for setting the domain and logging.)