From: Ignas Poklad Date: Sun, 20 Apr 2025 09:00:35 +0000 (+0200) Subject: openfortivpn: upgrade to 1.23.1 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=cfb0de859f816d681c7abe4e809dfe48d4a64615;p=feed%2Fpackages.git openfortivpn: upgrade to 1.23.1 add saml login support Signed-off-by: Ignas Poklad --- diff --git a/net/openfortivpn/Makefile b/net/openfortivpn/Makefile index bea629cf9d..be67233a91 100644 --- a/net/openfortivpn/Makefile +++ b/net/openfortivpn/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=openfortivpn -PKG_VERSION:=1.22.1 +PKG_VERSION:=1.23.1 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/adrienverge/openfortivpn/tar.gz/v$(PKG_VERSION)? -PKG_HASH:=9aaaae2229f01b35bf79dcc9e1c0a4363cec75084a30fd46df58c20d52bff809 +PKG_HASH:=ecacfc7f18d87f4ff503198177e51a83316b59b4646f31caa8140fdbfaa40389 PKG_MAINTAINER:=Lucian Cristian PKG_LICENSE:=GPL-3.0-or-later OpenSSL diff --git a/net/openfortivpn/files/openfortivpn.sh b/net/openfortivpn/files/openfortivpn.sh index 0924d4250f..b4bc9f5d01 100755 --- a/net/openfortivpn/files/openfortivpn.sh +++ b/net/openfortivpn/files/openfortivpn.sh @@ -22,6 +22,8 @@ proto_openfortivpn_init_config() { proto_config_add_int "persist_int" proto_config_add_string "trusted_cert" proto_config_add_string "remote_status_check" + proto_config_add_boolean "saml_login" + proto_config_add_int "saml_login_port" no_device=1 available=1 } @@ -32,9 +34,9 @@ proto_openfortivpn_setup() { local msg ifname ip server_ips pwfile callfile local peeraddr port tunlink local_ip username password persist_int \ - trusted_cert remote_status_check + trusted_cert remote_status_check saml_login saml_login_port json_get_vars host peeraddr port tunlink local_ip username password persist_int \ - trusted_cert remote_status_check + trusted_cert remote_status_check saml_login saml_login_port ifname="vpn-$config" @@ -138,6 +140,14 @@ proto_openfortivpn_setup() { [ -f /etc/openfortivpn/user-key-$config.pem ] && append_args "--user-key=/etc/openfortivpn/user-key-$config.pem" [ -f /etc/openfortivpn/ca-$config.pem ] && append_args "--ca-file=/etc/openfortivpn/ca-$config.pem" + [ "$saml_login" = 1 ] && { + if [ -n "$saml_login_port" ]; then + append_args "--saml-login=$saml_login_port" + else + append_args "--saml-login" + fi + } + callfile="/var/etc/openfortivpn/peers/$config" echo "115200 :$local_ip