server/sources/ldapfeed.py
changeset 10662 10942ed172de
parent 10612 84468b90e9c1
child 10666 7f6b5f023884
--- a/server/sources/ldapfeed.py	Tue Sep 08 18:04:57 2015 +0200
+++ b/server/sources/ldapfeed.py	Tue Sep 15 16:15:03 2015 +0200
@@ -185,7 +185,7 @@
         self.user_default_groups = typedconfig['user-default-group']
         self.user_attrs = {'dn': 'eid', 'modifyTimestamp': 'modification_date'}
         self.user_attrs.update(typedconfig['user-attrs-map'])
-        self.user_rev_attrs = dict((v, k) for k, v in self.user_attrs.iteritems())
+        self.user_rev_attrs = dict((v, k) for k, v in self.user_attrs.items())
         self.base_filters = [filter_format('(%s=%s)', ('objectClass', o))
                              for o in typedconfig['user-classes']]
         if typedconfig['user-filter']:
@@ -195,7 +195,7 @@
         self.group_attrs = typedconfig['group-attrs-map']
         self.group_attrs = {'dn': 'eid', 'modifyTimestamp': 'modification_date'}
         self.group_attrs.update(typedconfig['group-attrs-map'])
-        self.group_rev_attrs = dict((v, k) for k, v in self.group_attrs.iteritems())
+        self.group_rev_attrs = dict((v, k) for k, v in self.group_attrs.items())
         self.group_base_filters = [filter_format('(%s=%s)', ('objectClass', o))
                                    for o in typedconfig['group-classes']]
         if typedconfig['group-filter']:
@@ -349,7 +349,7 @@
             # This appears to be some sort of internal referral, but
             # we can't handle it, so we need to skip over it.
             try:
-                items = rec_dict.iteritems()
+                items = rec_dict.items()
             except AttributeError:
                 continue
             else: