conga/luci/utils luci_admin
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-06-18 15:02:48
Modified files:
luci/utils : luci_admin
Log message:
luci/utils/luci_admin +9 -4
@@ -44,6 +44,7 @@ except: pass inituser.close() return -1 + inituser.write(user + ':' + password) inituser.close()
@@ -165,23 +166,27 @@ props = { 'username': id, 'roles': [ 'Member' ], - 'password': 'changeme', - 'confirm': 'changeme', 'domains': [], 'email': email } - portal_reg.addMember(id, 'changeme', props) + portal_reg.addMember(id, passwd, props) + member = portal_mem.getMemberById(id) if not member: transaction.abort() sys.stderr.write('An error occurred while restoring the user \"' + id + '\"\n') return -1 + try: + aclu = app.unrestrictedTraverse('/luci/acl_users/Users/acl_users/') + aclu.__dict__['data'][id].__dict__['__'] = passwd + except: + transaction.abort() + sys.stderr.write('An error occurred while restoring the password for user \"' + id + '\"\n') verbose.write('Added user \"' + id + '\"\n') transaction.commit() - try: x = app.unrestrictedTraverse('/luci/systems/storage') if not x: