Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-12-28 23:09:21 +0100
committerArthur de Jong <arthur@arthurdejong.org>2011-12-28 23:09:21 +0100
commit2f7f531a094d5d2c49cd024969b1cba45e727590 (patch)
treeca75b46f8ba465dc0f2d1a0ffa6b8b37f041eed1
parent8d7e69dff4d0103b736622b6568298697eafcd28 (diff)
instead of modifying attmap, modify attribute list
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1577 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--pynslcd/group.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pynslcd/group.py b/pynslcd/group.py
index 554ce8e..3a0cc7c 100644
--- a/pynslcd/group.py
+++ b/pynslcd/group.py
@@ -49,9 +49,9 @@ class Search(common.Search):
super(Search, self).__init__(*args, **kwargs)
if attmap['member'] and 'memberUid' in self.parameters:
# set up our own attributes that leave out membership attributes
- self.attmap = common.Attributes(self.attmap)
- del self.attmap['memberUid']
- del self.attmap['member']
+ self.attributes = list(self.attributes)
+ self.attributes.remove(attmap['memberUid'])
+ self.attributes.remove(attmap['member'])
def mk_filter(self):
# we still need a custom mk_filter because this is an | query