summaryrefslogtreecommitdiff
path: root/source4/libgpo/gpo.h
diff options
context:
space:
mode:
authorWilco Baan Hofman <wilco@baanhofman.nl>2010-04-23 09:32:01 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-20 17:19:10 +0200
commit08a7bb4abc6e59bc109ac38c164ad3f0b63b2439 (patch)
treefaf9dffc4b33f260ddda7a3c5329bfb8a89a64a6 /source4/libgpo/gpo.h
parent6478a1edb70a60cfd318292478781a665b022887 (diff)
downloadsamba-08a7bb4abc6e59bc109ac38c164ad3f0b63b2439.tar.gz
samba-08a7bb4abc6e59bc109ac38c164ad3f0b63b2439.tar.bz2
samba-08a7bb4abc6e59bc109ac38c164ad3f0b63b2439.zip
Add gpo list function for listing applicable GPO's for users/machines.
Implements: * Hierarchical listing through all parent containers * security ACL checking on the GPO * User/computer disabled flags on the GPO * gPLink disabled * gPLink enforced * Block inheritance on the container Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/libgpo/gpo.h')
-rw-r--r--source4/libgpo/gpo.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/source4/libgpo/gpo.h b/source4/libgpo/gpo.h
index 1e51e5250a..2e58094608 100644
--- a/source4/libgpo/gpo.h
+++ b/source4/libgpo/gpo.h
@@ -29,6 +29,10 @@
#define GPO_FLAG_USER_DISABLE (1 << 0)
#define GPO_FLAG_MACHINE_DISABLE (1 << 1)
+enum gpo_inheritance {
+ GPO_INHERIT = 0,
+ GPO_BLOCK_INHERITANCE = 1,
+};
struct gp_context {
struct ldb_context *ldb_ctx;
@@ -47,13 +51,6 @@ struct gp_object {
struct security_descriptor *security_descriptor;
};
-struct gp_hierarchy_object {
- enum {
- GPO_INHERIT = 0,
- GPO_BLOCK_INHERITANCE = 1,
- } inheritance;
- struct gp_link **gplinks;
-};
struct gp_link {
uint32_t options;
@@ -72,6 +69,8 @@ NTSTATUS gp_init(TALLOC_CTX *mem_ctx,
NTSTATUS gp_list_all_gpos(struct gp_context *gp_ctx, struct gp_object ***ret);
NTSTATUS gp_get_gpo_info(struct gp_context *gp_ctx, const char *name, 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);
+
NTSTATUS gp_get_gplink_options(TALLOC_CTX *mem_ctx, uint32_t flags, const char ***ret);
NTSTATUS gp_get_gpo_flags(TALLOC_CTX *mem_ctx, uint32_t flags, const char ***ret);