summaryrefslogtreecommitdiff
path: root/libgpo/gpo_util.c
diff options
context:
space:
mode:
authorWilco Baan Hofman <wilco@baanhofman.nl>2009-03-01 19:49:42 +0100
committerGünther Deschner <gd@samba.org>2009-04-20 23:16:16 +0200
commit161d2603d2d7b1163b124ba3c529780e8aeec409 (patch)
tree369ea2253e1d0d4990c0d230c2f8712a5ade9f86 /libgpo/gpo_util.c
parent68ff179b2960c80c56978869e2dd97806b10a214 (diff)
downloadsamba-161d2603d2d7b1163b124ba3c529780e8aeec409.tar.gz
Mark the places where work needs to be done.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'libgpo/gpo_util.c')
-rw-r--r--libgpo/gpo_util.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/libgpo/gpo_util.c b/libgpo/gpo_util.c
index 3b6ff9b5f2b..720db5a2e53 100644
--- a/libgpo/gpo_util.c
+++ b/libgpo/gpo_util.c
@@ -557,7 +557,8 @@ ADS_STATUS gpo_process_gpo_list(ADS_STRUCT *ads,
if (!gp_ext_list) {
return ADS_ERROR_NT(NT_STATUS_DLL_INIT_FAILED);
}
-#if 0 /* Needs to be replaced with new patchfile_preg calls */
+/* FIXME Needs to be replaced with new patchfile_preg calls */
+#if 0
/* get the key here */
if (flags & GPO_LIST_FLAG_MACHINE) {
werr = gp_init_reg_ctx(mem_ctx, KEY_HKLM, REG_KEY_WRITE,
@@ -662,8 +663,8 @@ NTSTATUS check_refresh_gpo(ADS_STRUCT *ads,
DEBUG(1,("check_refresh_gpo: need to refresh GPO\n"));
+#if _SAMBA_BUILD == 3
if (*cli_out == NULL) {
-
result = cli_full_connection(&cli,
global_myname(),
ads_get_ldap_server_name(ads),
@@ -681,9 +682,11 @@ NTSTATUS check_refresh_gpo(ADS_STRUCT *ads,
nt_errstr(result)));
goto out;
}
-
*cli_out = cli;
}
+#else
+ /* TODO Implement */
+#endif
result = gpo_fetch_files(mem_ctx, cache_path, *cli_out, gpo);
if (!NT_STATUS_IS_OK(result)) {
@@ -731,6 +734,7 @@ NTSTATUS check_refresh_gpo(ADS_STRUCT *ads,
NTSTATUS check_refresh_gpo_list(ADS_STRUCT *ads,
TALLOC_CTX *mem_ctx,
+ const char *cache_path,
uint32_t flags,
struct GROUP_POLICY_OBJECT *gpo_list)
{
@@ -744,7 +748,7 @@ NTSTATUS check_refresh_gpo_list(ADS_STRUCT *ads,
for (gpo = gpo_list; gpo; gpo = gpo->next) {
- result = check_refresh_gpo(ads, mem_ctx, flags, gpo, &cli);
+ result = check_refresh_gpo(ads, mem_ctx, cache_path, flags, gpo, &cli);
if (!NT_STATUS_IS_OK(result)) {
goto out;
}