Port f_service to LDAP backend

Add new keyword, 'filter', that can be passed to the search function.
This is globbed onto the filter that is auto-created.
This commit is contained in:
Rob Crittenden
2008-10-17 19:20:23 -04:00
parent e66cd9599b
commit ae8370be44
4 changed files with 117 additions and 53 deletions

View File

@@ -243,7 +243,7 @@ class user_find(crud.Find):
object_type = ldap.get_object_type("uid")
if object_type and not kw.get('objectclass'):
kw['objectclass'] = ldap.get_object_type("uid")
kw['objectclass'] = object_type
return ldap.search(**kw)
def output_for_cli(self, users):
if not users: