openconnect csd wrapper with windows emulation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux