summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2016-02-12 10:55:01 -0600
committerAdriana Kobylak <anoo@us.ibm.com>2016-02-12 10:55:01 -0600
commitcf8e107c0719bfe2d84dd01eb413a5c3bf1f5fca (patch)
tree6e49cab046e4cb41a715ca5e3e797dcee6418833
parentd7b08eba3c5237064c50921bed06326202d77305 (diff)
downloadphosphor-networkd-cf8e107c0719bfe2d84dd01eb413a5c3bf1f5fca.tar.gz
phosphor-networkd-cf8e107c0719bfe2d84dd01eb413a5c3bf1f5fca.zip
Fix for user change password
Fix to allow to change the user password
-rwxr-xr-xuserman.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/userman.py b/userman.py
index 033d3d1..0488d10 100755
--- a/userman.py
+++ b/userman.py
@@ -38,12 +38,12 @@ OBJ_NAME_USER = '/org/openbmc/UserManager/User'
'''
userman_providers = {
- 'pam' : {
- 'adduser' : 'user add',
- },
- 'ldap' : {
- 'adduser' : 'ldap command to add user',
- },
+ 'pam' : {
+ 'adduser' : 'user add',
+ },
+ 'ldap' : {
+ 'adduser' : 'ldap command to add user',
+ },
}
class UserManGroups (dbus.service.Object):
@@ -207,7 +207,7 @@ class UserManUser (dbus.service.Object):
def Passwd (self, username, passwd):
if not username : return 1
- users = self.UserList ()
+ users = Usersobj.UserList ()
if username not in users : return 1
cmd = "passwd" + " " + username
@@ -218,7 +218,7 @@ class UserManUser (dbus.service.Object):
proc.sendline (passwd)
proc.wait()
- return r
+ return 0
def main():
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
@@ -246,3 +246,4 @@ def main():
if __name__ == '__main__':
sys.exit(main())
+
OpenPOWER on IntegriCloud