diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-12-15 10:07:46 +0100 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-12-20 10:44:10 -0500 |
commit | 409e4062f463a67a4d013e738274f553a782359b (patch) | |
tree | 387fa004f0046df248c9684e97af5c198e72ed6e /ipalib/plugins/baseldap.py | |
parent | 7aed107973913a31ca692d4aa70068efc2b53065 (diff) | |
download | freeipa-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/plugins/baseldap.py')
-rw-r--r-- | ipalib/plugins/baseldap.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index 44e1aeb0..cf26a951 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 |