summaryrefslogtreecommitdiff
path: root/source3/libgpo/gpo_util.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-07-13 23:32:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:36 -0500
commit3488299232d4774a392ed6c5c04a6bca3213ac5e (patch)
treed26239e37660fa74f6ee9f726fe5c9ea25fc7e02 /source3/libgpo/gpo_util.c
parentee7bf1530b7ff752ea33fed83d15bc586200760c (diff)
downloadsamba-3488299232d4774a392ed6c5c04a6bca3213ac5e.tar.gz
samba-3488299232d4774a392ed6c5c04a6bca3213ac5e.tar.bz2
samba-3488299232d4774a392ed6c5c04a6bca3213ac5e.zip
r23871: The snapin handler needs to have the full struct GROUP_POLICY_OBJECT.
Guenther (This used to be commit 9dc8ec0e193ad4aa85293c334ebbca5d0618f0d2)
Diffstat (limited to 'source3/libgpo/gpo_util.c')
-rw-r--r--source3/libgpo/gpo_util.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/source3/libgpo/gpo_util.c b/source3/libgpo/gpo_util.c
index d606409237..23b9cf332a 100644
--- a/source3/libgpo/gpo_util.c
+++ b/source3/libgpo/gpo_util.c
@@ -33,7 +33,9 @@ struct gpo_table {
struct snapin_table {
const char *name;
const char *guid_string;
- ADS_STATUS (*snapin_fn)(ADS_STRUCT *, TALLOC_CTX *mem_ctx, const char *, const char *);
+ ADS_STATUS (*snapin_fn)(ADS_STRUCT *, TALLOC_CTX *mem_ctx,
+ struct GROUP_POLICY_OBJECT *gpo,
+ const char *, const char *);
};
#if 0 /* unused */
@@ -347,6 +349,7 @@ void dump_gplink(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, struct GP_LINK *gp_link)
ADS_STATUS process_extension_with_snapin(ADS_STRUCT *ads,
TALLOC_CTX *mem_ctx,
+ struct GROUP_POLICY_OBJECT *gpo,
const char *extension_guid,
const char *snapin_guid)
{
@@ -356,7 +359,7 @@ ADS_STATUS process_extension_with_snapin(ADS_STRUCT *ads,
if (strcmp(gpo_cse_snapin_extensions[i].guid_string, snapin_guid) == 0) {
- return gpo_cse_snapin_extensions[i].snapin_fn(ads, mem_ctx,
+ return gpo_cse_snapin_extensions[i].snapin_fn(ads, mem_ctx, gpo,
extension_guid, snapin_guid);
}
}
@@ -416,7 +419,7 @@ ADS_STATUS gpo_process_a_gpo(ADS_STRUCT *ads,
continue;
}
- status = process_extension_with_snapin(ads, mem_ctx,
+ status = process_extension_with_snapin(ads, mem_ctx, gpo,
gp_ext->extensions_guid[i],
gp_ext->snapins_guid[i]);
if (!ADS_ERR_OK(status)) {
@@ -454,7 +457,8 @@ ADS_STATUS gpo_process_gpo_list(ADS_STRUCT *ads,
}
ADS_STATUS gpo_snapin_handler_none(ADS_STRUCT *ads,
- TALLOC_CTX *mem_ctx,
+ TALLOC_CTX *mem_ctx,
+ struct GROUP_POLICY_OBJECT *gpo,
const char *extension_guid,
const char *snapin_guid)
{
@@ -464,7 +468,8 @@ ADS_STATUS gpo_snapin_handler_none(ADS_STRUCT *ads,
}
ADS_STATUS gpo_snapin_handler_security_settings(ADS_STRUCT *ads,
- TALLOC_CTX *mem_ctx,
+ TALLOC_CTX *mem_ctx,
+ struct GROUP_POLICY_OBJECT *gpo,
const char *extension_guid,
const char *snapin_guid)
{