openfortivpn: upgrade to 1.23.1
authorIgnas Poklad <[email protected]>
Sun, 20 Apr 2025 09:00:35 +0000 (11:00 +0200)
committerTianling Shen <[email protected]>
Fri, 25 Apr 2025 13:27:05 +0000 (21:27 +0800)
add saml login support

Signed-off-by: Ignas Poklad <[email protected]>
net/openfortivpn/Makefile
net/openfortivpn/files/openfortivpn.sh

index bea629cf9df6bdb4202d9a7ce837af7e3aeaa5b1..be67233a91f4d345701881d837485c3ef5a2dc44 100644 (file)
@@ -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 <[email protected]>
 PKG_LICENSE:=GPL-3.0-or-later OpenSSL
index 0924d4250f570ffe934b18fd5ff741c1fe023db2..b4bc9f5d0181af46f9892cc7db04045befa93a65 100755 (executable)
@@ -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