diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2010-11-22 14:46:54 -0500 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2010-11-22 14:46:54 -0500 |
commit | e5d73bacd1db958ffe62f8d3a09d085929d0cbdc (patch) | |
tree | 2c2aaacd1b7acc498dcb7dd0af9d54433c1ccc4b /src/back-shr.c | |
parent | 321b42f6a03724c6ba00d00be7c70960ab446606 (diff) | |
download | slapi-nis-e5d73bacd1db958ffe62f8d3a09d085929d0cbdc.tar.gz slapi-nis-e5d73bacd1db958ffe62f8d3a09d085929d0cbdc.tar.xz slapi-nis-e5d73bacd1db958ffe62f8d3a09d085929d0cbdc.zip |
- teach wrap_search_internal_get_entry to take an optional filter
- where we were applying a filter test after retrieving an entry, just
let the retrieval function do it
Diffstat (limited to 'src/back-shr.c')
-rw-r--r-- | src/back-shr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/back-shr.c b/src/back-shr.c index 6a54789..25bb14c 100644 --- a/src/back-shr.c +++ b/src/back-shr.c @@ -86,7 +86,7 @@ backend_shr_read_server_name(struct plugin_state *state, char **master) return -1; } config = NULL; - wrap_search_internal_get_entry(config_dn, attrs, &config, + wrap_search_internal_get_entry(config_dn, NULL, attrs, &config, state->plugin_identity); if (config == NULL) { slapi_log_error(SLAPI_LOG_PLUGIN, @@ -255,7 +255,7 @@ backend_shr_set_config_entry_set_one_dn(struct plugin_state *state, return; } else { entry = NULL; - wrap_search_internal_get_entry(sdn, NULL, &entry, + wrap_search_internal_get_entry(sdn, NULL, NULL, &entry, state->plugin_identity); if (entry == NULL) { slapi_log_error(SLAPI_LOG_PLUGIN, @@ -1138,6 +1138,7 @@ backend_shr_update_references_cb(const char *group, const char *set, * attribute in the entry. */ values = NULL; wrap_search_internal_get_entry(these_entries[k], + NULL, these_attrs, &this_entry, state->plugin_identity); @@ -1200,6 +1201,7 @@ backend_shr_update_references_cb(const char *group, const char *set, * attribute in the entry. */ values = NULL; wrap_search_internal_get_entry(these_entries[k], + NULL, next_attrs, &this_entry, state->plugin_identity); |