]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Fix GlobalProtect authgroup handling
authorDaniel Lenski <dlenski@gmail.com>
Mon, 8 Oct 2018 18:03:45 +0000 (11:03 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Mon, 8 Oct 2018 18:03:45 +0000 (11:03 -0700)
commit7224312999fb5601d4c7e76ea9afe7eb6b2ca761
treefe092b56b7a8b3f750aa4838fc1bae1d624774ad
parent669c7d3e7a45aabc3035f8f538bbd36e23dbd3d8
Fix GlobalProtect authgroup handling

When connecting to a GlobalProtect server via the portal interface, then
`vpninfo->authgroup` needs to be set to the URL of one of the allowed
gateways.

The problem here is that if the user actually wanted to select the _first_
gateway in the dropdown list, it was already pre-selected, and thus clicking
"continue"/"login" on the form wouldn't trigger `OC_FORM_RESULT_NEWGROUP`.

This would prevent `vpninfo->authgroup` from getting set correctly, and the
gateway redirect would be skipped entirely.  Thus it was effectively
impossible to select the first option in the gateway dropdown.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
auth-globalprotect.c