summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/baseuser.py
diff options
context:
space:
mode:
authorMartin Babinsky <mbabinsk@redhat.com>2015-07-23 10:44:08 +0200
committerTomas Babej <tbabej@redhat.com>2015-07-23 11:43:05 +0200
commit7ceaa8e26c3073f3ff3f253025177d49259072f0 (patch)
treeed9f93486d24730e30d7a9930ad54676c39fde66 /ipalib/plugins/baseuser.py
parentcf59981cc2c6bb13c286188aa27cb10a49ff4a5e (diff)
downloadfreeipa-7ceaa8e26c3073f3ff3f253025177d49259072f0.tar.gz
freeipa-7ceaa8e26c3073f3ff3f253025177d49259072f0.tar.xz
freeipa-7ceaa8e26c3073f3ff3f253025177d49259072f0.zip
fix broken search for users by their manager
The patch fixes incorrect construction of search filter when using `ipa user-find` with '--manager' option. https://fedorahosted.org/freeipa/ticket/5146 Reviewed-By: Tomas Babej <tbabej@redhat.com>
Diffstat (limited to 'ipalib/plugins/baseuser.py')
-rw-r--r--ipalib/plugins/baseuser.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipalib/plugins/baseuser.py b/ipalib/plugins/baseuser.py
index 9068ef0fd..bd66cf5a3 100644
--- a/ipalib/plugins/baseuser.py
+++ b/ipalib/plugins/baseuser.py
@@ -561,6 +561,14 @@ class baseuser_find(LDAPSearch):
"""
Prototype command plugin to be implemented by real plugin
"""
+ def args_options_2_entry(self, *args, **options):
+ newoptions = {}
+ self.common_enhance_options(newoptions, **options)
+ options.update(newoptions)
+
+ return super(baseuser_find, self).args_options_2_entry(
+ *args, **options)
+
def common_enhance_options(self, newoptions, **options):
# assure the manager attr is a dn, not just a bare uid
manager = options.get('manager')