Exemple #1
0
 def __init__(self):
     Module.__init__(self)
     self.name = "shadow"
     self.handled_attributes['groups'] = ['shell', 'inactive']
     self.change_operations['add_user'] = self.add_user
     self.change_operations['mod_user'] = self.mod_user
     self.change_operations['del_user'] = self.del_user
     self.change_operations['add_group'] = self.add_group
     self.change_operations['del_group'] = self.del_group
Exemple #2
0
 def __init__(self):
     Module.__init__(self)
     self.name = "quota"
     self.handled_attributes["groups"] = ["userquota", "groupquota"]
     self.change_operations["set_quota"] = self.set_quota
     self.event_hooks[syspolicy.event.USER_ADDED] = self.event_user_modified
     self.event_hooks[syspolicy.event.USER_MODIFIED] = self.event_user_modified
     self.event_hooks[syspolicy.event.USER_REMOVED] = self.event_user_removed
     self.event_hooks[syspolicy.event.GROUP_ADDED] = self.event_group_added
     self.event_hooks[syspolicy.event.GROUP_REMOVED] = self.event_group_removed
Exemple #3
0
 def __init__(self):
     Module.__init__(self)
     self.name = "pam"
     self.handled_attributes['services'] = ['groups_allow', 'groups_deny',
             'users_allow', 'users_deny', 'password']
Exemple #4
0
 def __init__(self):
     Module.__init__(self)
     self.name = "state"
     self.change_operations["set_state"] = self.set_state