diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-01-31 11:57:02 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-03-01 16:59:47 +0100 |
commit | 3aa39547df18bc77ba49720f8a3a1a0052907859 (patch) | |
tree | a067e432ecc35f483afbd0b946c89a55345db294 /ipalib | |
parent | f17aa00ff01e3fff35d3b3ac75f001d076827ec8 (diff) | |
download | freeipa-3aa39547df18bc77ba49720f8a3a1a0052907859.tar.gz freeipa-3aa39547df18bc77ba49720f8a3a1a0052907859.tar.xz freeipa-3aa39547df18bc77ba49720f8a3a1a0052907859.zip |
Support attributes with multiple names in LDAPEntry.
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/host.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py index f464127d..affc3d77 100644 --- a/ipalib/plugins/host.py +++ b/ipalib/plugins/host.py @@ -412,7 +412,6 @@ class host_add(LDAPCreate): util.validate_host_dns(self.log, keys[-1]) if 'locality' in entry_attrs: entry_attrs['l'] = entry_attrs['locality'] - del entry_attrs['locality'] entry_attrs['cn'] = keys[-1] entry_attrs['serverhostname'] = keys[-1].split('.', 1)[0] if 'userpassword' not in entry_attrs and not options.get('random', False): @@ -635,7 +634,6 @@ class host_mod(LDAPUpdate): raise errors.ACIError(info=_('cn is immutable')) if 'locality' in entry_attrs: entry_attrs['l'] = entry_attrs['locality'] - del entry_attrs['locality'] if 'krbprincipalname' in entry_attrs: (dn, entry_attrs_old) = ldap.get_entry( dn, ['objectclass', 'krbprincipalname'] |