openconnect: implement --no-external-auth
authorThomas Winkler <redacted>
Tue, 10 Mar 2026 12:56:11 +0000 (13:56 +0100)
committerNikos Mavrogiannopoulos <redacted>
Sat, 14 Mar 2026 07:10:03 +0000 (08:10 +0100)
The option prevents OpenConnect from advertising
to the server that it supports any kind of
authentication mode that requires an external
browser. Some servers will force the client to use such
an authentication mode if the client advertises it, but
fallback to a more "scriptable" authentication mode if
the client doesn’t appear to support it.

Signed-off-by: Thomas Winkler <redacted>
net/openconnect/Makefile
net/openconnect/files/openconnect.sh

index 6ce0c20c73559aa9da1b46f7a93d115a3b4ac088..4fe4627c9e32090839b13cc32eca69b3fabcb2e0 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=openconnect
 PKG_VERSION:=9.12
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://www.infradead.org/openconnect/download
index ae8408b19ef64e8aaca9af1d8960c2dd3724d853..6ec8b6629633feb3035c542e4fe211964978786f 100755 (executable)
@@ -23,6 +23,7 @@ proto_openconnect_init_config() {
        proto_config_add_string "vpn_protocol"
        proto_config_add_boolean "pfs"
        proto_config_add_boolean "no_dtls"
+       proto_config_add_boolean "no_external_auth"
        proto_config_add_string "interface"
        proto_config_add_string "username"
        proto_config_add_string "serverhash"
@@ -58,6 +59,7 @@ proto_openconnect_setup() {
                juniper \
                vpn_protocol \
                mtu \
+               no_external_auth \
                no_dtls \
                os \
                password \
@@ -107,6 +109,7 @@ proto_openconnect_setup() {
        [ -n "$script" ] && append_args --script "$script"
        [ "$pfs" = 1 ] && append_args --pfs
        [ "$no_dtls" = 1 ] && append_args --no-dtls
+       [ "$no_external_auth" = 1 ] && append_args "--no-external-auth"
        [ -n "$mtu" ] && append_args --mtu "$mtu"
 
        # migrate to standard config files
git clone https://git.99rst.org/PROJECT