diff -ur ldaptor-0.0.35/ldaptor/protocols/ldap/distinguishedname.py ldaptor/ldaptor/protocols/ldap/distinguishedname.py --- ldaptor-0.0.35/ldaptor/protocols/ldap/distinguishedname.py 2005-01-20 21:21:45.000000000 +0100 +++ ldaptor/ldaptor/protocols/ldap/distinguishedname.py 2005-01-31 22:30:32.540012000 +0100 @@ -89,13 +89,9 @@ else: assert attributeType is None assert value is None - try: - self.attributeType, self.value = stringValue.split('=', 1) - except ValueError, e: - if str(e) == 'unpack list of wrong size': - raise InvalidRelativeDistinguishedName, stringValue - else: - raise + if '=' not in stringValue: + raise InvalidRelativeDistinguishedName, stringValue + self.attributeType, self.value = stringValue.split('=', 1) def __str__(self): return '='.join((escape(self.attributeType), escape(self.value))) diff -ur ldaptor-0.0.35/setup.py ldaptor/setup.py --- ldaptor-0.0.35/setup.py 2004-12-10 15:56:06.000000000 +0100 +++ ldaptor/setup.py 2005-01-28 19:45:34.812514000 +0100 @@ -36,6 +36,7 @@ "ldaptor", "ldaptor.protocols", "ldaptor.protocols.ldap", + "ldaptor.protocols.ldap.autofill", "ldaptor.samba", "ldaptor.apps", "ldaptor.apps.webui",