mirror of
https://github.com/samba-team/samba.git
synced 2025-02-22 05:57:43 +03:00
libgpo: allow to pass down a list of deleted GPOs in gpo_process_gpo_list().
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
a78b4d4f65
commit
c3f9d9929c
@ -228,7 +228,8 @@ void dump_gpo_list(const struct GROUP_POLICY_OBJECT *gpo_list,
|
||||
void dump_gplink(const struct GP_LINK *gp_link);
|
||||
NTSTATUS gpo_process_gpo_list(TALLOC_CTX *mem_ctx,
|
||||
const struct security_token *token,
|
||||
struct GROUP_POLICY_OBJECT *gpo_list,
|
||||
const struct GROUP_POLICY_OBJECT *deleted_gpo_list,
|
||||
const struct GROUP_POLICY_OBJECT *changed_gpo_list,
|
||||
const char *extensions_guid_filter,
|
||||
uint32_t flags);
|
||||
NTSTATUS check_refresh_gpo(ADS_STRUCT *ads,
|
||||
|
@ -427,7 +427,8 @@ bool gpo_get_gp_ext_from_gpo(TALLOC_CTX *mem_ctx,
|
||||
|
||||
NTSTATUS gpo_process_gpo_list(TALLOC_CTX *mem_ctx,
|
||||
const struct security_token *token,
|
||||
struct GROUP_POLICY_OBJECT *gpo_list,
|
||||
const struct GROUP_POLICY_OBJECT *deleted_gpo_list,
|
||||
const struct GROUP_POLICY_OBJECT *changed_gpo_list,
|
||||
const char *extensions_guid_filter,
|
||||
uint32_t flags)
|
||||
{
|
||||
@ -455,8 +456,8 @@ NTSTATUS gpo_process_gpo_list(TALLOC_CTX *mem_ctx,
|
||||
|
||||
status = gpext_process_extension(mem_ctx,
|
||||
flags, token, root_key,
|
||||
NULL,
|
||||
gpo_list,
|
||||
deleted_gpo_list,
|
||||
changed_gpo_list,
|
||||
extensions_guid_filter);
|
||||
talloc_free(reg_ctx);
|
||||
talloc_free(root_key);
|
||||
|
@ -433,7 +433,7 @@ static int net_ads_gpo_apply(struct net_context *c, int argc, const char **argv)
|
||||
goto out;
|
||||
}
|
||||
|
||||
status = ADS_ERROR_NT(gpo_process_gpo_list(mem_ctx, token, gpo_list,
|
||||
status = ADS_ERROR_NT(gpo_process_gpo_list(mem_ctx, token, NULL, gpo_list,
|
||||
filter, flags));
|
||||
if (!ADS_ERR_OK(status)) {
|
||||
d_printf("failed to process gpo list: %s\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user