add some tests for different field types
[matthijs/upstream/django-ldapdb.git] / ldapdb / __init__.py
index 7f11e6739637925b8b48d7dcc42c434ec1cc1abb..d1dcc47d05012a4260431dcabc6b2b3ffe306068 100644 (file)
@@ -100,11 +100,7 @@ class LdapConnection(object):
         output = []
         for dn, attrs in results:
             for field in attrs:
-                # FIXME : we should not reference the attribute name!
-                if field == "member" or field == "memberUid":
-                    attrs[field] = convert(field, attrs[field], lambda x: x.decode(self.charset))
-                else:
-                    attrs[field] = convert(field, attrs[field][0], lambda x: x.decode(self.charset))
+                attrs[field] = convert(field, attrs[field], lambda x: x.decode(self.charset))
             output.append((dn.decode(self.charset), attrs))
         return output