summaryrefslogtreecommitdiff
path: root/source3/sam/interface.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-09-28 14:26:19 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-09-28 14:26:19 +0000
commit120e3854177a3e57308cb88a20611a97f60c6d44 (patch)
treeb4b75a6b65651685a62424d085882842e6830fb0 /source3/sam/interface.c
parentac625a8235bcee8f56d26899c6f0ad7b13deae9a (diff)
downloadsamba-120e3854177a3e57308cb88a20611a97f60c6d44.tar.gz
samba-120e3854177a3e57308cb88a20611a97f60c6d44.tar.bz2
samba-120e3854177a3e57308cb88a20611a97f60c6d44.zip
Back out one of the API changes, now I recall how it was meant to work.
(New accounts are created on thier internal talloc context, not a supplied one and not the one beloning to the SAM) Also actaully add the sam_skel to the tree. I need to work out with Jelmer an appropriate way to ensure we still have an example external build, and if this should move back out again. Andrew Bartlett (This used to be commit dc8b0d23e088d1e7f7fbc6ab0423eaa82f14e258)
Diffstat (limited to 'source3/sam/interface.c')
-rw-r--r--source3/sam/interface.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/sam/interface.c b/source3/sam/interface.c
index 5d12cfc999..994e36606a 100644
--- a/source3/sam/interface.c
+++ b/source3/sam/interface.c
@@ -32,7 +32,9 @@ extern DOM_SID global_sid_Builtin;
const struct sam_init_function_entry builtin_sam_init_functions[] = {
{ "plugin", sam_init_plugin },
+#ifdef HAVE_LDAP
{ "ads", sam_init_ads },
+#endif
{ "skel", sam_init_skel },
{ NULL, NULL}
};
@@ -356,7 +358,7 @@ NTSTATUS context_sam_get_domain_by_sid(const SAM_CONTEXT *context, const NT_USER
return NT_STATUS_OK;
}
-NTSTATUS context_sam_create_account(const SAM_CONTEXT *context, const NT_USER_TOKEN *access_token, uint32 access_desired, TALLOC_CTX *mem_ctx, const DOM_SID *domainsid, const char *account_name, uint16 acct_ctrl, SAM_ACCOUNT_HANDLE **account)
+NTSTATUS context_sam_create_account(const SAM_CONTEXT *context, const NT_USER_TOKEN *access_token, uint32 access_desired, const DOM_SID *domainsid, const char *account_name, uint16 acct_ctrl, SAM_ACCOUNT_HANDLE **account)
{
SAM_METHODS *tmp_methods;
NTSTATUS nt_status;
@@ -373,7 +375,7 @@ NTSTATUS context_sam_create_account(const SAM_CONTEXT *context, const NT_USER_TO
return NT_STATUS_NOT_IMPLEMENTED;
}
- if (!NT_STATUS_IS_OK(nt_status = tmp_methods->sam_create_account(tmp_methods, access_token, access_desired, mem_ctx, account_name, acct_ctrl, account))) {
+ if (!NT_STATUS_IS_OK(nt_status = tmp_methods->sam_create_account(tmp_methods, access_token, access_desired, account_name, acct_ctrl, account))) {
DEBUG(4,("sam_create_account in backend %s failed\n",
tmp_methods->backendname));
return nt_status;