summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-12-15 10:07:46 +0100
committerRob Crittenden <rcritten@redhat.com>2010-12-20 10:44:10 -0500
commit409e4062f463a67a4d013e738274f553a782359b (patch)
tree387fa004f0046df248c9684e97af5c198e72ed6e /ipalib
parent7aed107973913a31ca692d4aa70068efc2b53065 (diff)
downloadfreeipa-409e4062f463a67a4d013e738274f553a782359b.tar.gz
freeipa-409e4062f463a67a4d013e738274f553a782359b.tar.xz
freeipa-409e4062f463a67a4d013e738274f553a782359b.zip
Allow renaming of object that have a parent
Allow renaming of object that have a parent
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/baseldap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py
index 44e1aeb07..cf26a9517 100644
--- a/ipalib/plugins/baseldap.py
+++ b/ipalib/plugins/baseldap.py
@@ -772,7 +772,8 @@ class LDAPUpdate(LDAPQuery, crud.Update):
# RDN change
ldap.update_entry_rdn(dn, unicode('%s=%s' % (self.obj.rdnattr,
entry_attrs[self.obj.rdnattr])))
- dn = self.obj.get_dn(entry_attrs[self.obj.rdnattr])
+ rdnkeys = keys[:-1] + (entry_attrs[self.obj.rdnattr], )
+ dn = self.obj.get_dn(*rdnkeys)
del entry_attrs[self.obj.rdnattr]
options['rdnupdate'] = True
rdnupdate = True