From 6e124adfe09eb84d5000daa95e7416040a2d56ba Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Tue, 16 Mar 2010 16:43:56 -0400 Subject: [PATCH] Framework: Enable configuring SSH VFS from Config --- framework/Core/lib/Horde/Config.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/framework/Core/lib/Horde/Config.php b/framework/Core/lib/Horde/Config.php index 7b141ee41..cbe3a871d 100644 --- a/framework/Core/lib/Horde/Config.php +++ b/framework/Core/lib/Horde/Config.php @@ -1245,6 +1245,42 @@ class Horde_Config 'driverconfig' => $sql ) ) + ), + 'ssh2' => array( + 'desc' => 'SSH2 (SFTP)', + 'fields' => array( + 'params' => array( + 'hostspec' => array( + '_type' => 'text', + 'required' => true, + 'desc' => 'SSH server/host', + 'default' => $this->_default($ctx . '|hostspec', '') + ), + 'port' => array( + '_type' => 'text', + 'required' => false, + 'desc' => 'Port number on which SSH listens', + 'default' => $this->_default($ctx . '|port', '22') + ), + 'username' => array( + '_type' => 'text', + 'required' => true, + 'desc' => 'Username to connect to the SSH server', + 'default' => $this->_default($ctx . '|username', '') + ), + 'password' => array( + '_type' => 'text', + 'required' => true, + 'desc' => 'Password with which to connect', + 'default' => $this->_default($ctx . '|password', '') + ), + 'vfsroot' => array( + '_type' => 'text', + 'desc' => 'Where on the real filesystem should Horde use as root of the virtual filesystem?', + 'default' => $this->_default($ctx . '|vfsroot', '/tmp') + ) + ) + ) ) ) ); -- 2.11.0