[node-patches] Change in ovirt-node[ovirt-3.5]: ovirtnode: Setting as password now also requires passwd

fabiand at redhat.com fabiand at redhat.com
Tue Jul 28 10:22:55 UTC 2015


Fabian Deutsch has uploaded a new change for review.

Change subject: ovirtnode: Setting as password now also requires passwd
......................................................................

ovirtnode: Setting as password now also requires passwd

Previously it was enough to unbind shadow, now we also need to unbind passwd.

Change-Id: Id80f4bdf257320270b429d2d7863cc114c29eabb
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1246117
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirtnode/password.py
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/72/44072/1

diff --git a/src/ovirtnode/password.py b/src/ovirtnode/password.py
index a100a67..e0eca20 100755
--- a/src/ovirtnode/password.py
+++ b/src/ovirtnode/password.py
@@ -40,8 +40,10 @@
     root = admin.lookupUserByName(user)
     passwd = cryptPassword(password)
     _functions.unmount_config("/etc/shadow")
+    _functions.unmount_config("/etc/passwd")
     admin.setpassUser(root, passwd, "is_crypted")
     _functions.ovirt_store_config("/etc/shadow")
+    _functions.ovirt_store_config("/etc/passwd")
     return True
 
 


-- 
To view, visit https://gerrit.ovirt.org/44072
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id80f4bdf257320270b429d2d7863cc114c29eabb
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list