summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/baseldap.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2013-02-04 11:48:58 +0100
committerMartin Kosek <mkosek@redhat.com>2013-03-01 16:59:47 +0100
commit5b2e0e2ba5808d6300de1cac743c96db0607121c (patch)
tree3165cccfbd01e5d76e74ae4df612cf64675fc046 /ipalib/plugins/baseldap.py
parenta09c50671ecc53af63765afca13edd27ee598081 (diff)
downloadfreeipa-5b2e0e2ba5808d6300de1cac743c96db0607121c.tar.gz
freeipa-5b2e0e2ba5808d6300de1cac743c96db0607121c.tar.xz
freeipa-5b2e0e2ba5808d6300de1cac743c96db0607121c.zip
Remove DN normalization from the baseldap plugin.
Diffstat (limited to 'ipalib/plugins/baseldap.py')
-rw-r--r--ipalib/plugins/baseldap.py21
1 files changed, 10 insertions, 11 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py
index b125b531c..923a019dd 100644
--- a/ipalib/plugins/baseldap.py
+++ b/ipalib/plugins/baseldap.py
@@ -424,7 +424,6 @@ class LDAPObject(Object):
parent_object = ''
container_dn = ''
- normalize_dn = True
object_name = _('entry')
object_name_plural = _('entries')
object_class = []
@@ -868,7 +867,7 @@ last, after all sets and adds."""),
if needldapattrs:
try:
(dn, old_entry) = self._exc_wrapper(keys, options, ldap.get_entry)(
- dn, needldapattrs, normalize=self.obj.normalize_dn
+ dn, needldapattrs
)
except errors.NotFound:
self.obj.handle_not_found(*keys)
@@ -1034,7 +1033,7 @@ class LDAPCreate(BaseLDAPCommand, crud.Create):
_check_limit_object_class(self.api.Backend.ldap2.schema.attribute_types(self.obj.disallow_object_classes), entry_attrs.keys(), allow_only=False)
try:
- self._exc_wrapper(keys, options, ldap.add_entry)(dn, entry_attrs, normalize=self.obj.normalize_dn)
+ self._exc_wrapper(keys, options, ldap.add_entry)(dn, entry_attrs)
except errors.NotFound:
parent = self.obj.parent_object
if parent:
@@ -1066,7 +1065,7 @@ class LDAPCreate(BaseLDAPCommand, crud.Create):
assert isinstance(dn, DN)
else:
(dn, entry_attrs) = self._exc_wrapper(keys, options, ldap.get_entry)(
- dn, attrs_list, normalize=self.obj.normalize_dn
+ dn, attrs_list
)
assert isinstance(dn, DN)
except errors.NotFound:
@@ -1190,7 +1189,7 @@ class LDAPRetrieve(LDAPQuery):
try:
(dn, entry_attrs) = self._exc_wrapper(keys, options, ldap.get_entry)(
- dn, attrs_list, normalize=self.obj.normalize_dn
+ dn, attrs_list
)
assert isinstance(dn, DN)
except errors.NotFound:
@@ -1315,7 +1314,7 @@ class LDAPUpdate(LDAPQuery, crud.Update):
# mean an error occurred, just that there were no other updates to
# perform.
assert isinstance(dn, DN)
- self._exc_wrapper(keys, options, ldap.update_entry)(dn, entry_attrs, normalize=self.obj.normalize_dn)
+ self._exc_wrapper(keys, options, ldap.update_entry)(dn, entry_attrs)
except errors.EmptyModlist, e:
if not rdnupdate:
raise e
@@ -1324,7 +1323,7 @@ class LDAPUpdate(LDAPQuery, crud.Update):
try:
(dn, entry_attrs) = self._exc_wrapper(keys, options, ldap.get_entry)(
- dn, attrs_list, normalize=self.obj.normalize_dn
+ dn, attrs_list
)
except errors.NotFound:
raise errors.MidairCollision(
@@ -1395,12 +1394,12 @@ class LDAPDelete(LDAPMultiQuery):
for (dn_, entry_attrs) in subentries:
delete_subtree(dn_)
try:
- self._exc_wrapper(nkeys, options, ldap.delete_entry)(base_dn, normalize=self.obj.normalize_dn)
+ self._exc_wrapper(nkeys, options, ldap.delete_entry)(base_dn)
except errors.NotFound:
self.obj.handle_not_found(*nkeys)
try:
- self._exc_wrapper(nkeys, options, ldap.delete_entry)(dn, normalize=self.obj.normalize_dn)
+ self._exc_wrapper(nkeys, options, ldap.delete_entry)(dn)
except errors.NotFound:
self.obj.handle_not_found(*nkeys)
except errors.NotAllowedOnNonLeaf:
@@ -1554,7 +1553,7 @@ class LDAPAddMember(LDAPModMember):
try:
(dn, entry_attrs) = self._exc_wrapper(keys, options, ldap.get_entry)(
- dn, attrs_list, normalize=self.obj.normalize_dn
+ dn, attrs_list
)
except errors.NotFound:
self.obj.handle_not_found(*keys)
@@ -1655,7 +1654,7 @@ class LDAPRemoveMember(LDAPModMember):
try:
(dn, entry_attrs) = self._exc_wrapper(keys, options, ldap.get_entry)(
- dn, attrs_list, normalize=self.obj.normalize_dn
+ dn, attrs_list
)
except errors.NotFound:
self.obj.handle_not_found(*keys)