diff options
author | Alexander Bokovoy <abokovoy@redhat.com> | 2013-07-31 14:26:55 +0300 |
---|---|---|
committer | Nalin Dahyabhai <nalin@dahyabhai.net> | 2013-08-07 11:33:23 -0400 |
commit | 4ddd2079b059c57f09419c72f73efee468318b01 (patch) | |
tree | e3925807306d2095df4e58baec8b4c23b28c0273 /src/back-sch.c | |
parent | a2af37c552477de78297322ef3bef099a0ac0717 (diff) | |
download | slapi-nis-4ddd2079b059c57f09419c72f73efee468318b01.tar.gz slapi-nis-4ddd2079b059c57f09419c72f73efee468318b01.tar.xz slapi-nis-4ddd2079b059c57f09419c72f73efee468318b01.zip |
back-sch: move structure definitions to back-sch.h to share with other code
NSSWITCH supporting code needs access to the schema-compat structures
Diffstat (limited to 'src/back-sch.c')
-rw-r--r-- | src/back-sch.c | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/src/back-sch.c b/src/back-sch.c index 142bdb9..0dc11c5 100644 --- a/src/back-sch.c +++ b/src/back-sch.c @@ -50,23 +50,10 @@ #include "format.h" #include "plugin.h" #include "map.h" +#include "back-sch.h" #define SCH_CONTAINER_CONFIGURATION_FILTER "(&(" SCH_CONTAINER_CONFIGURATION_GROUP_ATTR "=*)(" SCH_CONTAINER_CONFIGURATION_BASE_ATTR "=*)(" SCH_CONTAINER_CONFIGURATION_FILTER_ATTR "=*)(" SCH_CONTAINER_CONFIGURATION_RDN_ATTR "=*))" -/* The data we ask the map cache to keep, for us, for each set. */ -struct backend_set_data { - struct backend_shr_set_data common; - /* Schema compatibility-specific data. */ - Slapi_DN *container_sdn; - char *rdn_format; - char **attribute_format; - bool_t check_access; -}; -struct backend_entry_data { - Slapi_DN *original_entry_dn; - Slapi_Entry *e; -}; - /* Read the name of the NIS master. A dummy function for the schema * compatibility plugin. */ void @@ -879,25 +866,6 @@ backend_update_params(Slapi_PBlock *pb, struct plugin_state *state) slapi_entry_free(our_entry); } -/* Intercept a search request, and if it belongs to one of our compatibility - * trees, answer from our cache before letting the default database have a - * crack at it. */ -struct backend_search_cbdata { - Slapi_PBlock *pb; - struct plugin_state *state; - char *target, *strfilter, **attrs; - int scope, sizelimit, timelimit, attrsonly; - bool_t check_access; - Slapi_DN *target_dn; - Slapi_Filter *filter; - - bool_t answer; - int result; - bool_t matched; - char *closest_match, *text; - int n_entries; -}; - static bool_t backend_should_descend(Slapi_DN *this_dn, Slapi_DN *target_dn, int scope) { |