#endif
-/* the cache backend methods are exposed via this structure */
-struct winbindd_methods cache_methods = {
- true,
- wb_cache_query_user_list,
- wb_cache_enum_dom_groups,
- wb_cache_enum_local_groups,
- wb_cache_name_to_sid,
- wb_cache_sid_to_name,
- wb_cache_rids_to_names,
- wb_cache_query_user,
- wb_cache_lookup_usergroups,
- wb_cache_lookup_useraliases,
- wb_cache_lookup_groupmem,
- wb_cache_sequence_number,
- wb_cache_lockout_policy,
- wb_cache_password_policy,
- wb_cache_trusted_domains
-};
-
static bool wcache_ndr_key(TALLOC_CTX *mem_ctx, const char *domain_name,
uint32_t opnum, const DATA_BLOB *req,
TDB_DATA *pkey)
extern struct winbindd_methods builtin_passdb_methods;
extern struct winbindd_methods sam_passdb_methods;
extern struct winbindd_methods reconnect_methods;
-extern struct winbindd_methods cache_methods;
void ndr_print_winbindd_methods(struct ndr_print *ndr,
const char *name,
ndr_print_string(ndr, name, "sam_passdb_methods");
} else if (r == &reconnect_methods) {
ndr_print_string(ndr, name, "reconnect_methods");
- } else if (r == &cache_methods) {
- ndr_print_string(ndr, name, "cache_methods");
} else {
ndr_print_string(ndr, name, "UNKNOWN");
}
#define DBGC_CLASS DBGC_WINBIND
static struct winbindd_domain *
-add_trusted_domain_from_tdc(const struct winbindd_tdc_domain *tdc,
- struct winbindd_methods *methods);
-
-extern struct winbindd_methods cache_methods;
+add_trusted_domain_from_tdc(const struct winbindd_tdc_domain *tdc);
/**
* @file winbindd_util.c
static struct winbindd_domain *
add_trusted_domain(const char *domain_name, const char *alt_name,
- struct winbindd_methods *methods, const struct dom_sid *sid)
+ const struct dom_sid *sid)
{
struct winbindd_tdc_domain tdc;
sid_copy(&tdc.sid, sid);
}
- return add_trusted_domain_from_tdc(&tdc, methods);
+ return add_trusted_domain_from_tdc(&tdc);
}
/* Add a trusted domain out of a trusted domain cache
entry
*/
static struct winbindd_domain *
-add_trusted_domain_from_tdc(const struct winbindd_tdc_domain *tdc,
- struct winbindd_methods *methods)
+add_trusted_domain_from_tdc(const struct winbindd_tdc_domain *tdc)
{
struct winbindd_domain *domain;
const char *alternative_name = NULL;
* This is important because we need the SID for sibling
* domains.
*/
- (void)add_trusted_domain_from_tdc(&trust_params,
- &cache_methods);
+ (void)add_trusted_domain_from_tdc(&trust_params);
p = q + strlen(q) + 1;
}
d = find_domain_from_name_noinit( dom_list[i].domain_name );
if ( !d ) {
- d = add_trusted_domain_from_tdc(&dom_list[i],
- &cache_methods);
+ d = add_trusted_domain_from_tdc(&dom_list[i]);
}
if (d == NULL) {
about it */
if ( !d ) {
- d = add_trusted_domain_from_tdc(&dom_list[i],
- &cache_methods);
+ d = add_trusted_domain_from_tdc(&dom_list[i]);
}
if (d == NULL) {
d = add_trusted_domain(info.netbios_name.string,
info.domain_name.string,
- &cache_methods,
info.sid);
if (d == NULL) {
TALLOC_FREE(frame);
/* BUILTIN domain */
- (void)add_trusted_domain("BUILTIN", NULL, &cache_methods,
- &global_sid_Builtin);
+ (void)add_trusted_domain("BUILTIN", NULL, &global_sid_Builtin);
/* Local SAM */
}
domain = add_trusted_domain(pdb_domain_info->name,
pdb_domain_info->dns_domain,
- &cache_methods,
&pdb_domain_info->sid);
TALLOC_FREE(pdb_domain_info);
if (domain == NULL) {
} else {
(void)add_trusted_domain(get_global_sam_name(), NULL,
- &cache_methods, get_global_sam_sid());
+ get_global_sam_sid());
}
/* Add ourselves as the first entry. */
return False;
}
- domain = add_trusted_domain( lp_workgroup(), lp_realm(),
- &cache_methods, &our_sid);
+ domain = add_trusted_domain(lp_workgroup(), lp_realm(),
+ &our_sid);
if (domain) {
/* Even in the parent winbindd we'll need to
talk to the DC, so try and see if we can