diff options
author | Pavel Zuna <pzuna@redhat.com> | 2011-02-02 13:47:21 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-02-02 10:47:55 -0500 |
commit | 04ba37500bc7629edb22d465931dbee53d629b24 (patch) | |
tree | 31c8d5504a82f992e763c094e1bd96a6860408af /ipalib/plugins | |
parent | dba751758c21ab4223dd106cd21c7f6f34743e8c (diff) | |
download | freeipa-04ba37500bc7629edb22d465931dbee53d629b24.tar.gz freeipa-04ba37500bc7629edb22d465931dbee53d629b24.tar.xz freeipa-04ba37500bc7629edb22d465931dbee53d629b24.zip |
Fix minor bug in host-add logic.
Ticket #798
Diffstat (limited to 'ipalib/plugins')
-rw-r--r-- | ipalib/plugins/host.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py index d5c517479..e3f38fc84 100644 --- a/ipalib/plugins/host.py +++ b/ipalib/plugins/host.py @@ -323,9 +323,9 @@ class host_add(LDAPCreate): entry_attrs['krbprincipalname'] = 'host/%s@%s' % ( keys[-1], self.api.env.realm ) - if 'krbprincipalaux' not in entry_attrs: + if 'krbprincipalaux' not in entry_attrs['objectclass']: entry_attrs['objectclass'].append('krbprincipalaux') - if 'krbprincipal' not in entry_attrs: + if 'krbprincipal' not in entry_attrs['objectclass']: entry_attrs['objectclass'].append('krbprincipal') else: if 'krbprincipalaux' in entry_attrs['objectclass']: |