cs_set_attribute(self,
group,
attribute,
value,
diff)
| source code
|
This function produces a ChangeSet for setting a value in the services
policy. It handles the user/group allow and deny attributes as well as
the password strenght policy using pam_cracklib.so
It will always return a ChangeSet which contains the exact lines that
needed to be changed in a specific PAM configuration file.
- Parameters:
group - The group for which the attribute is being set
attribute - The attribute in the policy that is being set
value - The new value
diff - The difference from the old value
- Returns:
- A ChangeSet or None
- Overrides:
module.Module.cs_set_attribute
|