fix character encoding in call to delete_s
authorjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 7 Sep 2009 06:01:17 +0000 (06:01 +0000)
committerjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 7 Sep 2009 06:01:17 +0000 (06:01 +0000)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@647 e071eeec-0327-468d-9b6a-08194a12b294

ldapdb/__init__.py

index c622eb31491f65d618a2f3b6e9bd596ebb147b41..60b6c865710b64130469fe4f51f4a8194b1ade6f 100644 (file)
@@ -49,7 +49,7 @@ class LdapConnection(object):
         return self.connection.add_s(dn.encode(self.charset), mods)
 
     def delete_s(self, dn):
-        return self.connection.delete_s(dn)
+        return self.connection.delete_s(dn.encode(self.charset))
 
     def modify_s(self, dn, modlist):
         mods = []