summaryrefslogtreecommitdiff
path: root/source4/lib/policy/policy.h
diff options
context:
space:
mode:
authorWilco Baan Hofman <wilco@baanhofman.nl>2010-04-27 21:06:11 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-20 17:19:11 +0200
commit3b11a53304df29ebe2f2bfdeb5a6f0bf66553013 (patch)
treed21f56fb3f19ebba384c41ee898da3631d3e6b74 /source4/lib/policy/policy.h
parent698144851a07f66e7b786f5e1eb08d4670ddb619 (diff)
downloadsamba-3b11a53304df29ebe2f2bfdeb5a6f0bf66553013.tar.gz
samba-3b11a53304df29ebe2f2bfdeb5a6f0bf66553013.tar.bz2
samba-3b11a53304df29ebe2f2bfdeb5a6f0bf66553013.zip
Add fetch function for GPO which fetches all relevant files from the sysvol share.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/lib/policy/policy.h')
-rw-r--r--source4/lib/policy/policy.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/lib/policy/policy.h b/source4/lib/policy/policy.h
index 2811abf608..c02253f377 100644
--- a/source4/lib/policy/policy.h
+++ b/source4/lib/policy/policy.h
@@ -20,7 +20,7 @@
#ifndef __GPO_H__
#define __GPO_H__
-
+#include "libcli/libcli.h"
#define GPLINK_OPT_DISABLE (1 << 0)
#define GPLINK_OPT_ENFORCE (1 << 1)
@@ -41,6 +41,8 @@ struct gp_context {
struct loadparm_context *lp_ctx;
struct cli_credentials *credentials;
struct tevent_context *ev_ctx;
+ struct smbcli_state *cli;
+ struct nbt_dc_name active_dc;
};
struct gp_object {
@@ -70,6 +72,8 @@ NTSTATUS gp_init(TALLOC_CTX *mem_ctx,
struct cli_credentials *creds,
struct tevent_context *ev_ctx,
struct gp_context **gp_ctx);
+
+/* LDAP functions */
NTSTATUS gp_list_all_gpos(struct gp_context *gp_ctx, struct gp_object ***ret);
NTSTATUS gp_get_gplinks(struct gp_context *gp_ctx, const char *req_dn, struct gp_link ***ret);
NTSTATUS gp_list_gpos(struct gp_context *gp_ctx, struct security_token *token, const char ***ret);
@@ -87,4 +91,7 @@ NTSTATUS gp_del_gplink(struct gp_context *gp_ctx, const char *dn_str, const char
NTSTATUS gp_get_inheritance(struct gp_context *gp_ctx, const char *dn_str, enum gpo_inheritance *inheritance);
NTSTATUS gp_set_inheritance(struct gp_context *gp_ctx, const char *dn_str, enum gpo_inheritance inheritance);
+/* File system functions */
+NTSTATUS gp_fetch_gpo (struct gp_context *gp_ctx, struct gp_object *gpo, const char **path);
+
#endif