[sysadmin-bin] fix reset-my-passwd



commit 4285032eaa93ea69f10905196cfa1eef76c1466c
Author: Olav Vitters <olav vitters nl>
Date:   Sun Mar 20 01:15:13 2011 +0100

    fix reset-my-passwd

 handle-ldap-modules |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/handle-ldap-modules b/handle-ldap-modules
index 3bdfb9b..574ad0d 100755
--- a/handle-ldap-modules
+++ b/handle-ldap-modules
@@ -640,7 +640,7 @@ if __name__ == '__main__':
     elif cmd == 'reset-my-passwd':
         import pwd
 
-        protected = set(self.get_uids_from_group('sysadmin') + self.get_uids_from_group('accounts') + self.get_uids_from_group('mango'))
+        protected = set(m.get_uids_from_group('sysadmin') + m.get_uids_from_group('accounts') + m.get_uids_from_group('mango'))
         uid = pwd.getpwuid(os.getuid())[0]
         if uid in protected or uid not in m.UID_TO_PW or uid not in m.VCS_UIDS:
             sys.exit(2)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]