summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2013-03-08 18:23:19 +0100
committerMartin Kosek <mkosek@redhat.com>2013-03-13 17:33:51 +0100
commit99b62aa66ffbf7f1ffd566b44ebe41a0f6c1782c (patch)
treecfc3e9a708a810379118e0e07ceef4ff8019a8da /ipalib
parentade4aaef9aba7e05276dc2f436a43e0bb7d42da3 (diff)
downloadfreeipa-99b62aa66ffbf7f1ffd566b44ebe41a0f6c1782c.tar.gz
freeipa-99b62aa66ffbf7f1ffd566b44ebe41a0f6c1782c.tar.xz
freeipa-99b62aa66ffbf7f1ffd566b44ebe41a0f6c1782c.zip
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
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/baseldap.py6
1 files changed, 0 insertions, 6 deletions
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)