diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2002-09-24 20:18:39 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2002-09-24 20:18:39 +0000 |
commit | 2cd64003e3b127ca5a204b801155fcb4a7447a48 (patch) | |
tree | da3a9ee54c445fdb3c8ebf79bb925de118d49a4b /source3/sam/sam_plugin.c | |
parent | 28947d6cd12040de37e3dfb29eeb1163cc429f32 (diff) | |
download | samba-2cd64003e3b127ca5a204b801155fcb4a7447a48.tar.gz samba-2cd64003e3b127ca5a204b801155fcb4a7447a48.tar.bz2 samba-2cd64003e3b127ca5a204b801155fcb4a7447a48.zip |
- Don't put pointer to sam_domain_handle in sam_methods but single domainsid and domainname
- Allocate sam_methods, set domain_sid, domain_name and backend_name in make_sam_methods_backend_entry instead of in the backend
- Remove sam_context and domain_sid pointers from the sam_init_function - we don't need those arguments anymore since they're
available in sam_methods as well
(This used to be commit 50d2527eed0eb26c16f2f7e28badbf08d771380e)
Diffstat (limited to 'source3/sam/sam_plugin.c')
-rw-r--r-- | source3/sam/sam_plugin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/sam/sam_plugin.c b/source3/sam/sam_plugin.c index 9d2ee937ef..fd26c4b8d3 100644 --- a/source3/sam/sam_plugin.c +++ b/source3/sam/sam_plugin.c @@ -25,7 +25,7 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_SAM -NTSTATUS sam_init_plugin(const SAM_CONTEXT *sam_context, SAM_METHODS **sam_method, const DOM_SID *domain, const char *module_params) +NTSTATUS sam_init_plugin(SAM_METHODS *sam_methods, const char *module_params) { void *dl_handle; char *plugin_params, *plugin_name, *p; @@ -74,6 +74,6 @@ NTSTATUS sam_init_plugin(const SAM_CONTEXT *sam_context, SAM_METHODS **sam_metho return NT_STATUS_UNSUCCESSFUL; } - DEBUG(5, ("Starting sam plugin %s with parameters %s for domain %s\n", plugin_name, plugin_params, sid_string_static(domain))); - return plugin_init(sam_context, sam_method, domain, plugin_params); + DEBUG(5, ("Starting sam plugin %s with parameters %s for domain %s\n", plugin_name, plugin_params, sam_methods->domain_name)); + return plugin_init(sam_methods, plugin_params); } |