Commit d05a9d15 authored by Nigel Kukard's avatar Nigel Kukard

Merge branch 'fixarray' into 'master'

Fix the port forwarding which should be returned as an array

See merge request !42
parents dc722ad4 14867364
Pipeline #954 passed with stages
in 3 minutes and 1 second
......@@ -76,7 +76,7 @@ use User::pwent;
my $NAME = "AWIT-SSH-Client";
our $VERSION = "0.8.6";
our $VERSION = "0.8.7";
print(STDERR "$NAME v$VERSION - Copyright (c) 2016-2017, AllWorldIT\n\n");
......@@ -456,7 +456,7 @@ if ($ldapEntry) {
$forwardUsername //= $ldapLoginForwardUsername;
}
if (my $ldapLoginForwardPortExtra = $ldapEntry->get_value('awitLoginForwardPortExtra')) {
if (my $ldapLoginForwardPortExtra = $ldapEntry->get_value('awitLoginForwardPortExtra', 'asref' => 1)) {
my @tmpList = ();
# Check if this is an array ref or not
if (ref($ldapLoginForwardPortExtra) eq "ARRAY") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment