From 99b62aa66ffbf7f1ffd566b44ebe41a0f6c1782c Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Fri, 8 Mar 2013 18:23:19 +0100 Subject: Remove implicit Str to DN conversion using *-attr DNs represented as strings and passed via --setattr or --addattr are no longer implicitly converted to DN type. This solves various errors associated with this behaviour, see tickets below. Unit tests added. https://fedorahosted.org/freeipa/ticket/3348 https://fedorahosted.org/freeipa/ticket/3349 --- ipalib/plugins/baseldap.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ipalib') diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index 1e71a64f4..3d013ced9 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -777,12 +777,6 @@ last, after all sets and adds."""), # None means "delete this attribute" value = None - if ldap.has_dn_syntax(attr): - try: - value = DN(value) - except ValueError: - raise errors.InvalidSyntax(attr=attr) - if attr in newdict: if type(value) in (tuple,): newdict[attr] += list(value) -- cgit