diff options
author | Volker Lendecke <vl@samba.org> | 2009-06-08 19:43:01 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-06-08 21:14:10 +0200 |
commit | a51e6ce43cbc576a1352b0eccdab2f5c7f1bc2c2 (patch) | |
tree | 5a0c92a72764d1724d2ee23c94df7271c8e54598 /source3/passdb | |
parent | 5ea88420da78589b3d52addcd8cce119968f0f73 (diff) | |
download | samba-a51e6ce43cbc576a1352b0eccdab2f5c7f1bc2c2.tar.gz samba-a51e6ce43cbc576a1352b0eccdab2f5c7f1bc2c2.tar.bz2 samba-a51e6ce43cbc576a1352b0eccdab2f5c7f1bc2c2.zip |
Pass a talloc_ctx to pdb_enum_aliasmem
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_interface.c | 5 | ||||
-rw-r--r-- | source3/passdb/pdb_ldap.c | 3 | ||||
-rw-r--r-- | source3/passdb/pdb_wbc_sam.c | 6 |
3 files changed, 9 insertions, 5 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c index fdf09ae13b..a61dcb19d3 100644 --- a/source3/passdb/pdb_interface.c +++ b/source3/passdb/pdb_interface.c @@ -933,11 +933,12 @@ NTSTATUS pdb_del_aliasmem(const DOM_SID *alias, const DOM_SID *member) return pdb->del_aliasmem(pdb, alias, member); } -NTSTATUS pdb_enum_aliasmem(const DOM_SID *alias, +NTSTATUS pdb_enum_aliasmem(const DOM_SID *alias, TALLOC_CTX *mem_ctx, DOM_SID **pp_members, size_t *p_num_members) { struct pdb_methods *pdb = pdb_get_methods(); - return pdb->enum_aliasmem(pdb, alias, pp_members, p_num_members); + return pdb->enum_aliasmem(pdb, alias, mem_ctx, pp_members, + p_num_members); } NTSTATUS pdb_enum_alias_memberships(TALLOC_CTX *mem_ctx, diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index 2272aedf13..dddde75a4e 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -3564,6 +3564,7 @@ static NTSTATUS ldapsam_del_aliasmem(struct pdb_methods *methods, static NTSTATUS ldapsam_enum_aliasmem(struct pdb_methods *methods, const DOM_SID *alias, + TALLOC_CTX *mem_ctx, DOM_SID **pp_members, size_t *p_num_members) { @@ -3656,7 +3657,7 @@ static NTSTATUS ldapsam_enum_aliasmem(struct pdb_methods *methods, if (!string_to_sid(&member, values[i])) continue; - status = add_sid_to_array(NULL, &member, pp_members, + status = add_sid_to_array(mem_ctx, &member, pp_members, &num_members); if (!NT_STATUS_IS_OK(status)) { ldap_value_free(values); diff --git a/source3/passdb/pdb_wbc_sam.c b/source3/passdb/pdb_wbc_sam.c index 9c31a0d75c..ec54d553d1 100644 --- a/source3/passdb/pdb_wbc_sam.c +++ b/source3/passdb/pdb_wbc_sam.c @@ -366,8 +366,10 @@ static NTSTATUS pdb_wbc_sam_get_aliasinfo(struct pdb_methods *methods, } static NTSTATUS pdb_wbc_sam_enum_aliasmem(struct pdb_methods *methods, - const DOM_SID *alias, DOM_SID **pp_members, - size_t *p_num_members) + const DOM_SID *alias, + TALLOC_CTX *mem_ctx, + DOM_SID **pp_members, + size_t *p_num_members) { return NT_STATUS_NOT_IMPLEMENTED; } |