From 100f13d95b51ab5b8a2a4b7dfb04c5f3b58015d4 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 25 Jun 2013 12:58:37 +0000 Subject: Use LDAP search instead of *group_show to check if a group exists. https://fedorahosted.org/freeipa/ticket/3706 --- ipalib/plugins/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/plugins/user.py') diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index 32fda68e..4fd94210 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) -- cgit