X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=ldapdb%2F__init__.py;h=d1dcc47d05012a4260431dcabc6b2b3ffe306068;hb=de6f78f7a31674ccb7e7f223f3272e4970cdb757;hp=7f11e6739637925b8b48d7dcc42c434ec1cc1abb;hpb=f522a1edca8bccd27cefc6407a150ea5b98a2f07;p=matthijs%2Fupstream%2Fdjango-ldapdb.git diff --git a/ldapdb/__init__.py b/ldapdb/__init__.py index 7f11e67..d1dcc47 100644 --- a/ldapdb/__init__.py +++ b/ldapdb/__init__.py @@ -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