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
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
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
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
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
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
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
---
.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
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
*** 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
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-
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
12 matches
Mail list logo