diff options
author | Martin Kosek <mkosek@redhat.com> | 2012-02-06 13:47:39 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-02-06 13:51:23 +0100 |
commit | b32d320922a041493a4fde8c80ba65dab432baea (patch) | |
tree | 109e04861141f10887e5805ba08649d1c61513bf /ipalib/plugins | |
parent | 36849292704a801bbfd6b633f9596914fb076a36 (diff) | |
download | freeipa-b32d320922a041493a4fde8c80ba65dab432baea.tar.gz freeipa-b32d320922a041493a4fde8c80ba65dab432baea.tar.xz freeipa-b32d320922a041493a4fde8c80ba65dab432baea.zip |
Return proper DN in netgroup-add
This patch fixes netgroup unit test failures which expect the
original DN.
https://fedorahosted.org/freeipa/ticket/2069
Diffstat (limited to 'ipalib/plugins')
-rw-r--r-- | ipalib/plugins/netgroup.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |