diff options
author | Wilco Baan Hofman <wilco@baanhofman.nl> | 2010-04-23 17:31:21 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-06-20 17:19:10 +0200 |
commit | 40d71815072b5258cbe3ed0f1de62be68625e25e (patch) | |
tree | 7829193a0efbaedbd616cdf81316f6c5b25714e1 /source4/lib/policy/policy.h | |
parent | a1fceac844a0a7690ab985fa08e6a08127e770bf (diff) | |
download | samba-40d71815072b5258cbe3ed0f1de62be68625e25e.tar.gz samba-40d71815072b5258cbe3ed0f1de62be68625e25e.tar.bz2 samba-40d71815072b5258cbe3ed0f1de62be68625e25e.zip |
Add add gPLink function and corresponding net gpo linkadd call.
Also added some definitions for future functions in policy.h
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/lib/policy/policy.h')
-rw-r--r-- | source4/lib/policy/policy.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source4/lib/policy/policy.h b/source4/lib/policy/policy.h index 2e58094608..0f78b0f8b8 100644 --- a/source4/lib/policy/policy.h +++ b/source4/lib/policy/policy.h @@ -57,9 +57,11 @@ struct gp_link { const char *dn; }; +#if 0 /* Not used yet */ NTSTATUS gp_fetch_gpo(TALLOC_CTX *mem_ctx, struct ldb_context *ldb); NTSTATUS gp_apply_gpo(TALLOC_CTX *mem_ctx, struct ldb_context *ldb); NTSTATUS gp_check_refresh_gpo(TALLOC_CTX *mem_ctx, struct ldb_context *ldb); +#endif NTSTATUS gp_init(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, @@ -67,12 +69,18 @@ NTSTATUS gp_init(TALLOC_CTX *mem_ctx, struct tevent_context *ev_ctx, struct gp_context **gp_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_gpo_info(struct gp_context *gp_ctx, const char *dn_str, struct gp_object **ret); +NTSTATUS gp_set_gpo_info(struct gp_context *gp_ctx, const char *dn_str, struct gp_object *gpo); +NTSTATUS gp_del_gpo(struct gp_context *gp_ctx, const char *dn_str); + 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); +NTSTATUS gp_add_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); + #endif |