summaryrefslogtreecommitdiff
path: root/source4/lib/policy/policy.h
diff options
context:
space:
mode:
authorWilco Baan Hofman <wilco@baanhofman.nl>2010-04-26 17:26:51 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-20 17:19:11 +0200
commit698144851a07f66e7b786f5e1eb08d4670ddb619 (patch)
treec0e86319c9fe01708831ed76eee4d6b5e606c7df /source4/lib/policy/policy.h
parenta4cb72790cfc8f267f8574de3eea8634aed62e57 (diff)
downloadsamba-698144851a07f66e7b786f5e1eb08d4670ddb619.tar.gz
samba-698144851a07f66e7b786f5e1eb08d4670ddb619.tar.bz2
samba-698144851a07f66e7b786f5e1eb08d4670ddb619.zip
Add getinheritance and setinheritance to net gpo util and library.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/lib/policy/policy.h')
-rw-r--r--source4/lib/policy/policy.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/policy/policy.h b/source4/lib/policy/policy.h
index 05a2815989..2811abf608 100644
--- a/source4/lib/policy/policy.h
+++ b/source4/lib/policy/policy.h
@@ -29,6 +29,8 @@
#define GPO_FLAG_USER_DISABLE (1 << 0)
#define GPO_FLAG_MACHINE_DISABLE (1 << 1)
+struct security_token;
+
enum gpo_inheritance {
GPO_INHERIT = 0,
GPO_BLOCK_INHERITANCE = 1,
@@ -82,5 +84,7 @@ NTSTATUS gp_get_gpo_flags(TALLOC_CTX *mem_ctx, uint32_t flags, const char ***ret
NTSTATUS gp_set_gplink(struct gp_context *gp_ctx, const char *dn_str, struct gp_link *gplink);
NTSTATUS gp_del_gplink(struct gp_context *gp_ctx, const char *dn_str, const char *gp_dn);
+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);
#endif