summaryrefslogtreecommitdiff
path: root/source3/sam/sam_ads.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/sam_ads.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/sam_ads.c')
-rwxr-xr-xsource3/sam/sam_ads.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/sam/sam_ads.c b/source3/sam/sam_ads.c
index 7f2a901d81..cd24baa1bc 100755
--- a/source3/sam/sam_ads.c
+++ b/source3/sam/sam_ads.c
@@ -569,7 +569,6 @@ static NTSTATUS sam_ads_get_domain_handle(const SAM_METHODS *sam_method, const N
/* Account API */
static NTSTATUS sam_ads_create_account(const SAM_METHODS *sam_method,
const NT_USER_TOKEN *access_token, uint32 access_desired,
- TALLOC_CTX *mem_ctx,
const char *account_name, uint16 acct_ctrl, SAM_ACCOUNT_HANDLE **account)
{
ADS_STATUS ads_status = ADS_STATUS_NOT_IMPLEMENTED;
@@ -586,7 +585,7 @@ static NTSTATUS sam_ads_create_account(const SAM_METHODS *sam_method,
if (!ADS_ERR_OK(ads_status))
return ads_ntstatus(ads_status);
- ads_status = ADS_ERROR_NT(sam_init_account_talloc(mem_ctx, account));
+ ads_status = ADS_ERROR_NT(sam_init_account(account));
if (!ADS_ERR_OK(ads_status))
return ads_ntstatus(ads_status);