From 3268b65ae0dfc7ffdeba685e8e2515a437bf092e Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 15 Oct 2008 16:11:34 -0400 Subject: Initial implementation of a generic search routine. --- ipalib/plugins/f_user.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'ipalib/plugins/f_user.py') diff --git a/ipalib/plugins/f_user.py b/ipalib/plugins/f_user.py index a1078fe7..c2bb7b6f 100644 --- a/ipalib/plugins/f_user.py +++ b/ipalib/plugins/f_user.py @@ -237,11 +237,10 @@ api.register(user_mod) class user_find(crud.Find): 'Search the users.' def execute(self, *args, **kw): - uid=args[0] - result = servercore.find_users(uid, ["*"]) - return result - def forward(self, *args, **kw): - users = super(crud.Find, self).forward(*args, **kw) + ldap = self.api.Backend.ldap + kw['uid'] = args[0] + return ldap.search(**kw) + def output_for_cli(self, users): if not users: return counter = users[0] -- cgit