diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-06-25 12:58:37 +0000 |
---|---|---|
committer | Alexander Bokovoy <abokovoy@redhat.com> | 2013-07-11 12:39:25 +0300 |
commit | 100f13d95b51ab5b8a2a4b7dfb04c5f3b58015d4 (patch) | |
tree | 27bf5a35b396177642ccfee3bfe5b210dcdc7c52 /ipalib/plugins/user.py | |
parent | ab96ca7831ad8ab2ee2389093ea8b9327d94d6f0 (diff) | |
download | freeipa-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.py | 2 |
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) |