From b32d320922a041493a4fde8c80ba65dab432baea Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Mon, 6 Feb 2012 13:47:39 +0100 Subject: Return proper DN in netgroup-add This patch fixes netgroup unit test failures which expect the original DN. https://fedorahosted.org/freeipa/ticket/2069 --- ipalib/plugins/netgroup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipalib') diff --git a/ipalib/plugins/netgroup.py b/ipalib/plugins/netgroup.py index 149936dc4..489bdb02d 100644 --- a/ipalib/plugins/netgroup.py +++ b/ipalib/plugins/netgroup.py @@ -151,8 +151,8 @@ class netgroup_add(LDAPCreate): entry_attrs.setdefault('nisdomainname', self.api.env.domain) try: - dn = self.obj.get_dn(keys[-1]) - (dn_, netgroup) = ldap.get_entry(dn, ['objectclass']) + test_dn = self.obj.get_dn(keys[-1]) + (test_dn_, netgroup) = ldap.get_entry(test_dn, ['objectclass']) if 'mepManagedEntry' in netgroup.get('objectclass', []): raise errors.DuplicateEntry(message=unicode(self.msg_collision % keys[-1])) else: -- cgit