[Openvpn-devel] Patch for pam recent module

2019-06-26 Thread Paolo
nd); @@ -853,6 +865,7 @@ pam_server(int fd, const char *service, int verb, const struct name_value_list * up.username, up.password);  #else fprintf(stderr, "AUTH-PAM: BACKGROUND: USER: %s\n", up.username)

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

2019-06-28 Thread Paolo
Hi, after rebasing my fork on current master, the are no conflicts with current source code. Travis error on osx are not releated to my code, they are errors about configuration peace not working on osx. -- -***- Paolo Cerrito

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

2019-06-27 Thread Paolo
019 10:26, Paolo Cerrito wrote: >> From: paolo >> >> Signed-off-by: Paolo Cerrito > Why do we need this change? > What benefit does it give us? > How can it be used? > > IMHO it would be nice to add these pieces of information to the commit > message (ri

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

2019-06-27 Thread Paolo
Hi, another example (and the simplest case) is: support to set remote client data into PAM environment, in turn correctly allow PAM logging the client address to syslog Paolo Cerrito Il 27/06/19 11:07, Antonio Quartulli ha scritto: > Hi, > > On 27/06/2019 10:26, Paolo Cerrito wrote

Re: [Openvpn-devel] [PATCH] [PATCH v5 1/1] Insert client connection data into PAM environment

2020-03-31 Thread Paolo
nt verb, const struct name_value_list * up.username, up.password);  #else fprintf(stderr, "AUTH-PAM: BACKGROUND: USER: %s\n", up.username); +    fprintf(stderr, "AUTH-PAM: BACKGROUND: REMOTE: %s\n", up.remote);  #endif

Re: [Openvpn-devel] OpenVPN Webmin module

2005-01-22 Thread Paolo Poletti
i'm pretty curious ... why not Webmin ? Daniel Lehmann ha scritto: Am Samstag, den 22.01.2005, 16:02 +0100 schrieb Paolo Poletti: Hi, we're planning the development of a Webmin module for openvpn, that will be released with GPL license : is there any started project that we can contribute

[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

[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 0/1] *** Insert client connection data into pam environment V2***

2019-10-02 Thread Paolo Cerrito
.so # and here are more per-package modules (the "Additional" block) # end of pam-auth-update config *** paolo (1): Insert client connection data into PAM environment src/plugins/auth-pam/auth-pam.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) -- 2

[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

[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
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. ---

[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

[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, pu

[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 ---

[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

[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

[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