lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1577 - nss-pam-ldapd/pynslcd

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1577 - nss-pam-ldapd/pynslcd



Author: arthur
Date: Wed Dec 28 23:09:21 2011
New Revision: 1577
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1577&view=revision

Log:
instead of modifying attmap, modify attribute list

Modified:
   nss-pam-ldapd/pynslcd/group.py

Modified: nss-pam-ldapd/pynslcd/group.py
==============================================================================
--- nss-pam-ldapd/pynslcd/group.py      Wed Dec 28 22:29:57 2011        (r1576)
+++ nss-pam-ldapd/pynslcd/group.py      Wed Dec 28 23:09:21 2011        (r1577)
@@ -49,9 +49,9 @@
         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
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/