summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/config.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2013-06-25 12:58:37 +0000
committerAlexander Bokovoy <abokovoy@redhat.com>2013-07-11 12:39:25 +0300
commit100f13d95b51ab5b8a2a4b7dfb04c5f3b58015d4 (patch)
tree27bf5a35b396177642ccfee3bfe5b210dcdc7c52 /ipalib/plugins/config.py
parentab96ca7831ad8ab2ee2389093ea8b9327d94d6f0 (diff)
downloadfreeipa-100f13d95b51ab5b8a2a4b7dfb04c5f3b58015d4.tar.gz
freeipa-100f13d95b51ab5b8a2a4b7dfb04c5f3b58015d4.tar.xz
freeipa-100f13d95b51ab5b8a2a4b7dfb04c5f3b58015d4.zip
Use LDAP search instead of *group_show to check if a group exists.
https://fedorahosted.org/freeipa/ticket/3706
Diffstat (limited to 'ipalib/plugins/config.py')
-rw-r--r--ipalib/plugins/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/config.py b/ipalib/plugins/config.py
index 33eb174ec..b9cf05016 100644
--- a/ipalib/plugins/config.py
+++ b/ipalib/plugins/config.py
@@ -213,7 +213,7 @@ class config_mod(LDAPUpdate):
if 'ipadefaultprimarygroup' in entry_attrs:
group=entry_attrs['ipadefaultprimarygroup']
try:
- api.Command['group_show'](group)
+ api.Object['group'].get_dn_if_exists(group)
except errors.NotFound:
raise errors.NotFound(message=_("The group doesn't exist"))
kw = {}