openfortivpn: upgrade to 1.23.1

add saml login support

Signed-off-by: Ignas Poklad <ignas2526@gmail.com>
This commit is contained in:
Ignas Poklad
2025-04-20 11:00:35 +02:00
committed by Tianling Shen
parent c6daef227b
commit cfb0de859f
2 changed files with 14 additions and 4 deletions

View File

@@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=openfortivpn PKG_NAME:=openfortivpn
PKG_VERSION:=1.22.1 PKG_VERSION:=1.23.1
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/adrienverge/openfortivpn/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/adrienverge/openfortivpn/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=9aaaae2229f01b35bf79dcc9e1c0a4363cec75084a30fd46df58c20d52bff809 PKG_HASH:=ecacfc7f18d87f4ff503198177e51a83316b59b4646f31caa8140fdbfaa40389
PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com> PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
PKG_LICENSE:=GPL-3.0-or-later OpenSSL PKG_LICENSE:=GPL-3.0-or-later OpenSSL

View File

@@ -22,6 +22,8 @@ proto_openfortivpn_init_config() {
proto_config_add_int "persist_int" proto_config_add_int "persist_int"
proto_config_add_string "trusted_cert" proto_config_add_string "trusted_cert"
proto_config_add_string "remote_status_check" proto_config_add_string "remote_status_check"
proto_config_add_boolean "saml_login"
proto_config_add_int "saml_login_port"
no_device=1 no_device=1
available=1 available=1
} }
@@ -32,9 +34,9 @@ proto_openfortivpn_setup() {
local msg ifname ip server_ips pwfile callfile local msg ifname ip server_ips pwfile callfile
local peeraddr port tunlink local_ip username password persist_int \ 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 \ 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" 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/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" [ -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" callfile="/var/etc/openfortivpn/peers/$config"
echo "115200 echo "115200
:$local_ip :$local_ip