diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-09-28 14:26:19 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-09-28 14:26:19 +0000 |
commit | 120e3854177a3e57308cb88a20611a97f60c6d44 (patch) | |
tree | b4b75a6b65651685a62424d085882842e6830fb0 /source3/sam/api.c | |
parent | ac625a8235bcee8f56d26899c6f0ad7b13deae9a (diff) | |
download | samba-120e3854177a3e57308cb88a20611a97f60c6d44.tar.gz samba-120e3854177a3e57308cb88a20611a97f60c6d44.tar.xz 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/api.c')
-rw-r--r-- | source3/sam/api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/sam/api.c b/source3/sam/api.c index 349c18787c..fd345592ce 100644 --- a/source3/sam/api.c +++ b/source3/sam/api.c @@ -120,7 +120,7 @@ NTSTATUS sam_get_domain_by_sid(const NT_USER_TOKEN *access_token, const uint32 a /* Account API */ -NTSTATUS sam_create_account(const NT_USER_TOKEN *access_token, const uint32 access_desired, TALLOC_CTX *mem_ctx, const DOM_SID *domainsid, const char *account_name, uint16 acct_ctrl, SAM_ACCOUNT_HANDLE **account) +NTSTATUS sam_create_account(const NT_USER_TOKEN *access_token, const uint32 access_desired, const DOM_SID *domainsid, const char *account_name, uint16 acct_ctrl, SAM_ACCOUNT_HANDLE **account) { SAM_CONTEXT *sam_context = sam_get_static_context(False); @@ -128,7 +128,7 @@ NTSTATUS sam_create_account(const NT_USER_TOKEN *access_token, const uint32 acce return NT_STATUS_UNSUCCESSFUL; } - return sam_context->sam_create_account(sam_context, access_token, access_desired, mem_ctx, domainsid, account_name, acct_ctrl, account); + return sam_context->sam_create_account(sam_context, access_token, access_desired, domainsid, account_name, acct_ctrl, account); } NTSTATUS sam_add_account(const DOM_SID *domainsid, const SAM_ACCOUNT_HANDLE *account) |