From patchwork Tue Apr 9 02:35:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 2187 Return-Path: Received: from mail01.ipfire.org (mail01.i.ipfire.org [172.28.1.200]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail01.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web07.i.ipfire.org (Postfix) with ESMTPS id BD73888DACA for ; Mon, 8 Apr 2019 17:35:32 +0100 (BST) Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 44dGHm2Qdxz52pLc; Mon, 8 Apr 2019 17:35:32 +0100 (BST) Received: from [127.0.0.1] (163-172-12-160.rev.poneytelecom.eu [163.172.12.160]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 44dGHj1ygvz5D0ND for ; Mon, 8 Apr 2019 17:35:28 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201904rsa; t=1554741330; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=k4TI+thS7clnNxZZdu1W2WX8py1tNhqFCBUDh9yGr7Q=; b=B8AUz4Fi7NDeutEpGrNTx5OCuQr761olbaCzqRX6HCqXHyerU0m43KptN4pbGQc7z9+WKW 9w3bPO/7xZIJtt15xGYph3p6sn2mprkw/EKN4edENJEeUQL/pAO+3JXW7YwuWzHWYv4eKy 06TuePrZ4dJzPv5VcwrDK5xaWaf8J+6ud7fg0CAuxN8LRmOo8CYFYLiUoPzqZTmMtjO3rW ZMsGPtZ7aUpItFmZpINPb6w2sza0FBHEEnKwyqijlX/avLE3rsSDKE7R3YUPdgFt5MDpVm F9UuSp85chudXFENPV7GYW+LfjppClStwJRdTaCsPq1FlfYdi5n5zBZR9/QE2Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201904ed25519; t=1554741330; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=k4TI+thS7clnNxZZdu1W2WX8py1tNhqFCBUDh9yGr7Q=; b=3oLPhSMa7aZStHRV0NiUcsA+PELBQvujJNwUB1YH/yYrn46magIUGRFpHYWoGu9GuBZsKq WtibI+YLs1nqxmAA== To: "IPFire: Development-List" From: =?utf-8?q?Peter_M=C3=BCller?= Subject: [PATCH 2/3] allow SSH agent forwarding to be configured via WebUI Organization: IPFire.org Message-ID: Date: Mon, 08 Apr 2019 16:35:00 +0000 MIME-Version: 1.0 Content-Language: en-US Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=pmueller smtp.mailfrom=peter.mueller@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Fixes #11931 Signed-off-by: Peter Müller Cc: Michael Tremer --- html/cgi-bin/remote.cgi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/html/cgi-bin/remote.cgi b/html/cgi-bin/remote.cgi index 1b3dfed70..10d94fe99 100644 --- a/html/cgi-bin/remote.cgi +++ b/html/cgi-bin/remote.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2014 IPFire Team # +# Copyright (C) 2007-2019 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -105,6 +105,7 @@ else { # used $remotesettings{'ENABLE_SSH_PASSWORDS'} = 'on' unless exists $remotesettings{'ENABLE_SSH_PASSWORDS'}; $remotesettings{'ENABLE_SSH_KEYS'} = 'on' unless exists $remotesettings{'ENABLE_SSH_KEYS'}; + $remotesettings{'SSH_AGENT_FORWARDING'} = 'off' unless exists $remotesettings{'SSH_AGENT_FORWARDING'}; $checked{'ENABLE_SSH'}{'off'} = ''; $checked{'ENABLE_SSH'}{'on'} = ''; @@ -121,6 +122,9 @@ $checked{'ENABLE_SSH_KEYS'}{$remotesettings{'ENABLE_SSH_KEYS'}} = "checked='chec $checked{'SSH_PORT'}{'off'} = ''; $checked{'SSH_PORT'}{'on'} = ''; $checked{'SSH_PORT'}{$remotesettings{'SSH_PORT'}} = "checked='checked'"; +$checked{'SSH_AGENT_FORWARDING'}{'off'} = ''; +$checked{'SSH_AGENT_FORWARDING'}{'on'} = ''; +$checked{'SSH_AGENT_FORWARDING'}{$remotesettings{'SSH_AGENT_FORWARDING'}} = "checked='checked'"; &Header::openpage($Lang::tr{'remote access'}, 1, ''); @@ -161,6 +165,11 @@ print < $Lang::tr{'ssh port'} + +   + + $Lang::tr{'ssh agent forwarding'} +