openconnect csd wrapper with windows emulation
Eugene Yunak
e.yunak at gmail.com
Thu Aug 18 01:38:41 PDT 2016
Hello,
My server does not support Linux or Android, thus I'm stuck trying to emulate
Windows.
Can someone please show me your wrapper script? I can't get it to pass the OS
check and I suspect that's because I'm not advertising correct
user-agent/anyconnect-platform via http headers in `run_curl()`. I currently
have:
```
function run_curl
{
curl \
--insecure \
--user-agent "AnyConnect Windows 3.1.00495" \
--header "X-Transcend-Version: 1" \
--header "X-Aggregate-Auth: 1" \
--header "X-AnyConnect-Platform: windows" \
--cookie "sdesktop=$CSD_TOKEN" \
"$@"
}
run_curl --data-ascii @-
"https://$CSD_HOSTNAME/+CSCOE+/sdesktop/scan.xml?reusebrowser=1"
<<-END
endpoint.policy.location="Default";
endpoint.enforce="success";
endpoint.fw["MSWindowsFW"]={};
endpoint.fw["MSWindowsFW"].exists="true";
endpoint.fw["MSWindowsFW"].enabled="ok";
endpoint.as["MicrosoftAS"]={};
endpoint.as["MicrosoftAS"].exists="true";
endpoint.as["MicrosoftAS"].activescan="ok";
endpoint.av["MicrosoftAV"]={};
endpoint.av["MicrosoftAV"].exists="true";
endpoint.av["MicrosoftAV"].activescan="ok";
END
```
Regards,
Eugene
More information about the openconnect-devel
mailing list