summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/user.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/user.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/user.py')
-rw-r--r--ipalib/plugins/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py
index 32fda68e8..4fd942109 100644
--- a/ipalib/plugins/user.py
+++ b/ipalib/plugins/user.py
@@ -451,7 +451,7 @@ class user_add(LDAPCreate):
# The Managed Entries plugin will allow a user to be created
# even if a group has a duplicate name. This would leave a user
# without a private group. Check for both the group and the user.
- self.api.Command['group_show'](keys[-1])
+ self.api.Object['group'].get_dn_if_exists(keys[-1])
try:
self.api.Command['user_show'](keys[-1])
self.obj.handle_duplicate_entry(*keys)