Commit 14867364 authored by Nigel Kukard's avatar Nigel Kukard

Fix the port forwarding which should be returned as an array

parent 784f577c
......@@ -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");
......@@ -466,7 +466,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