[Openvpn-devel] [PATCH v3] Insert client connection data into PAM environment

2022-10-10 Thread Paolo Cerrito
From: paolo - styled code as openvpn - added check for remote, if NULL after all get_env, put to point to empy string Signed-off-by: Paolo Cerrito --- src/plugins/auth-pam/auth-pam.c | 28 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/src/plugins

[Openvpn-devel] [PATCH v2] Insert client connection data into PAM environment v2

2022-06-24 Thread Paolo Cerrito
From: paolo "Changes from v1: changed sprintf for logging to plugin_log " change to reflect current head openvpn repository this patch put remote host ip into pam environment, so this make pam module able to use it. in simple, this patch get ip (ipv4 and ipv6) from openvpn, put into pam enviro

[Openvpn-devel] [PATCH] Insert client connection data into PAM environment, upgraded

2022-06-20 Thread Paolo Cerrito
From: paolo --- src/plugins/auth-pam/auth-pam.c | 25 + 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/src/plugins/auth-pam/auth-pam.c b/src/plugins/auth-pam/auth-pam.c index 70339445..c2e66e5c 100644 --- a/src/plugins/auth-pam/auth-pam.c +++ b/src/plugins

[Openvpn-devel] [PATCH] Insert client connection data into PAM environment

2022-06-20 Thread Paolo Cerrito
From: paolo --- src/plugins/auth-pam/auth-pam.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/plugins/auth-pam/auth-pam.c b/src/plugins/auth-pam/auth-pam.c index 70339445..f91a2f02 100644 --- a/src/plugins/auth-pam/auth-pam.c +++ b/src/plugins/aut

[Openvpn-devel] [PATCH 1/2] Single patch:

2022-06-06 Thread Paolo Cerrito
1) changed lenght of remote to 46 2) refactored call to get_env --- src/plugins/auth-pam/auth-pam.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/plugins/auth-pam/auth-pam.c b/src/plugins/auth-pam/auth-pam.c index 9d8dfb95..c03e178b 100644 --- a/src/plugins/au

[Openvpn-devel] [PATCH] [PATCH v5] Insert client connection data into PAM environment

2020-03-30 Thread Paolo Cerrito
1) so remote was set to the maxlenght of ipv6 address defined into arpa/inet.h + 1 for string terminator 2) I refactored the call to get_env to take first ipv6 address, then only if it is NULL, i make a call for ipv4 --- src/plugins/auth-pam/auth-pam.c | 8 +--- 1 file changed, 5 insertio

[Openvpn-devel] [Openvpn-Devel] [PATCH v4] Insert client connection data into PAM environment

2020-03-30 Thread Paolo Cerrito
From: Paolo Cerrito 1) changed again remote lenght, we have to consider only the lenght op ipv6 address into form :::::ddd.ddd.ddd.ddd not the mask, so we have max lenght of 45 plus terminator. 2) refactored calls to get_env, now we make one call to take ipv6 address

[Openvpn-devel] [PATCH] PATCH V3 - changed remote lenght and refactored get_env

2020-03-26 Thread Paolo Cerrito
--- .gitignore | 1 + src/plugins/auth-pam/auth-pam.c | 8 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0d68ec4b..3977882f 100644 --- a/.gitignore +++ b/.gitignore @@ -72,3 +72,4 @@ nbproject test-driver compile stamp

[Openvpn-devel] [PATCH] [PATCH V3] - changed remote lenght and refactored get_env

2020-03-26 Thread Paolo Cerrito
1) I put remote lenght to 51, as it have to hold ipv6/ipv4 ip address plus string terminator. 2) As asked, i refactor the call to get_env, so now first of all there is a one call to get_env to get the ipv6 address, if is not set, and only in this case, we recall get_env for ipv4. --- .giti

[Openvpn-devel] [PATCH 0/1] *** Insert client connection data into pam environment V2***

2019-10-02 Thread Paolo Cerrito
*** This patch make openvpn insert network client data connection into pam environment, so make pam modules to process them correctly. This improvement can make, for example, dynaminc firewalling more simple and can be done into pam. This patch is used from as into vpn environment by University of

[Openvpn-devel] [PATCH] Insert client connection data into PAM environment

2019-10-01 Thread Paolo Cerrito
From: paolo --- src/plugins/auth-pam/auth-pam.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/plugins/auth-pam/auth-pam.c b/src/plugins/auth-pam/auth-pam.c index 88b53204..9d8dfb95 100644 --- a/src/plugins/auth-pam/auth-pam.c +++ b/src/plugins/auth-

[Openvpn-devel] [PATCH] Insert client connection data into PAM environment

2019-06-27 Thread Paolo Cerrito
From: paolo Signed-off-by: Paolo Cerrito --- src/plugins/auth-pam/auth-pam.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/plugins/auth-pam/auth-pam.c b/src/plugins/auth-pam/auth-pam.c index 88b53204..9d8dfb95 100644 --- a/src/plugins/auth-pam