Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: engine_page: ovirt.node.config.defaults SSH
......................................................................

engine_page: ovirt.node.config.defaults SSH

Use SSH class from ovirt.node.config.defaults to enable SSH password
authentication, persist the files and update the node config file.

Thanks to Fabian Deutsch

Change-Id: I03dda8474aac4c37859a50dd9c1a2a68dc046f6d
Signed-off-by: Douglas Schilling Landgraf <dougsl...@redhat.com>
---
M src/engine_page.py
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node-plugin-vdsm 
refs/changes/99/21199/1

diff --git a/src/engine_page.py b/src/engine_page.py
index 2288385..04018be 100644
--- a/src/engine_page.py
+++ b/src/engine_page.py
@@ -19,7 +19,7 @@
 # MA  02110-1301, USA.  A copy of the GNU General Public License is
 # also available at http://www.gnu.org/copyleft/gpl.html.
 from ovirt.node import plugins, valid, ui, utils, app, exceptions
-from ovirt.node.config.defaults import NodeConfigFileSection
+from ovirt.node.config.defaults import NodeConfigFileSection, SSH
 from ovirt.node.plugins import Changeset
 from ovirt.node import log
 from . import config
@@ -302,9 +302,9 @@
         passwd = utils.security.Passwd()
         passwd.set_password("root", self.password)
 
-        sshd = utils.security.Ssh()
-        sshd.password_authentication(True)
-        sshd.restart()
+        sshcfg = SSH()
+        sshcfg.update(pwauth=True)
+        sshcfg.commit()
 
 
 class ActivateVDSM(utils.Transaction.Element):


-- 
To view, visit http://gerrit.ovirt.org/21199
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I03dda8474aac4c37859a50dd9c1a2a68dc046f6d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node-plugin-vdsm
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsl...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to