From 04ba37500bc7629edb22d465931dbee53d629b24 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Wed, 2 Feb 2011 13:47:21 -0500 Subject: Fix minor bug in host-add logic. Ticket #798 --- ipalib/plugins/host.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipalib/plugins/host.py') diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py index d5c51747..e3f38fc8 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']: -- cgit