From 64ddff90c7fcc02ccb06824ac93af7d5f361a88f Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Wed, 23 May 2012 04:21:35 -0400 Subject: Add support for filtering atributes This patch adds support for filtering attributes when constructing attribute list from a map for LDAP query. --- src/providers/ldap/sdap_async_autofs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/providers/ldap/sdap_async_autofs.c') diff --git a/src/providers/ldap/sdap_async_autofs.c b/src/providers/ldap/sdap_async_autofs.c index d8a2d0ee..9c8337d3 100644 --- a/src/providers/ldap/sdap_async_autofs.c +++ b/src/providers/ldap/sdap_async_autofs.c @@ -242,7 +242,8 @@ automntmaps_process_members_send(TALLOC_CTX *mem_ctx, } ret = build_attrs_from_map(state, opts->autofs_entry_map, - SDAP_OPTS_AUTOFS_ENTRY, &state->attrs, NULL); + SDAP_OPTS_AUTOFS_ENTRY, NULL, + &state->attrs, NULL); if (ret != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, ("Failed to build attributes from map\n")); ret = ENOMEM; @@ -674,7 +675,8 @@ sdap_autofs_setautomntent_send(TALLOC_CTX *memctx, talloc_free(clean_mapname); ret = build_attrs_from_map(state, state->opts->autofs_mobject_map, - SDAP_OPTS_AUTOFS_MAP, &state->attrs, NULL); + SDAP_OPTS_AUTOFS_MAP, NULL, + &state->attrs, NULL); if (ret != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, ("Failed to build attributes from map\n")); ret = ENOMEM; -- cgit