diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2014-01-06 04:39:24 -0800 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2014-01-06 04:39:24 -0800 |
commit | 3fa9197a3e1ca39bd35915e9ad1281a0177d8ab3 (patch) | |
tree | 04635d066da926239aad0c13b1aaa285bcc1089d /src/lib/Bcfg2/Client | |
parent | 7520748d3644d3b92f784e6142a899dc9a3182fd (diff) | |
parent | f3154b9f0471faaef0e64f89b669cd01614fef20 (diff) | |
download | bcfg2-3fa9197a3e1ca39bd35915e9ad1281a0177d8ab3.tar.gz bcfg2-3fa9197a3e1ca39bd35915e9ad1281a0177d8ab3.tar.bz2 bcfg2-3fa9197a3e1ca39bd35915e9ad1281a0177d8ab3.zip |
Merge pull request #151 from irconan/group-blacklist
Fixed group blacklist issue #150
Diffstat (limited to 'src/lib/Bcfg2/Client')
-rw-r--r-- | src/lib/Bcfg2/Client/Tools/POSIXUsers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/POSIXUsers.py b/src/lib/Bcfg2/Client/Tools/POSIXUsers.py index bf23aca6b..6d18cd176 100644 --- a/src/lib/Bcfg2/Client/Tools/POSIXUsers.py +++ b/src/lib/Bcfg2/Client/Tools/POSIXUsers.py @@ -146,7 +146,8 @@ class POSIXUsers(Bcfg2.Client.Tools.Tool): """ Get a list of supplmentary groups that the user in the given entry is a member of """ return [g for g in self.existing['POSIXGroup'].values() - if entry.get("name") in g[3] and g[0] != entry.get("group")] + if entry.get("name") in g[3] and g[0] != entry.get("group") + and self._in_managed_range('POSIXGroup', g[2])] def VerifyPOSIXUser(self, entry, _): """ Verify a POSIXUser entry """ |