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

fabiand at redhat.com fabiand at redhat.com
Thu Jul 23 15:27:28 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/50/43950/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/43950
To unsubscribe, visit https://gerrit.ovirt.org/settings

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



More information about the node-patches mailing list