diff options
author | Günther Deschner <gd@samba.org> | 2008-02-29 16:03:23 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-29 17:07:57 +0100 |
commit | 41efa5ca45f87435ad2a344010ead8e5e2fecbb0 (patch) | |
tree | 9afc057c189a602a0e1705f26dfdf5f1c81c7f7f /source3/libgpo/gpo_util.c | |
parent | ad38725f96c9a285718ea6a515d73508b8db3fca (diff) | |
download | samba-41efa5ca45f87435ad2a344010ead8e5e2fecbb0.tar.gz samba-41efa5ca45f87435ad2a344010ead8e5e2fecbb0.tar.xz samba-41efa5ca45f87435ad2a344010ead8e5e2fecbb0.zip |
Add Group Policy extension infrastructure.
Guenther
(This used to be commit 6d543b1a1a5a7af98affc9aea2edf650cb476379)
Diffstat (limited to 'source3/libgpo/gpo_util.c')
-rw-r--r-- | source3/libgpo/gpo_util.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/source3/libgpo/gpo_util.c b/source3/libgpo/gpo_util.c index cd532da48b3..bc6c35726c2 100644 --- a/source3/libgpo/gpo_util.c +++ b/source3/libgpo/gpo_util.c @@ -668,6 +668,39 @@ NTSTATUS check_refresh_gpo_list(ADS_STRUCT *ads, /**************************************************************** ****************************************************************/ +char *gpo_flag_str(uint32_t flags) +{ + fstring str = ""; + + if (flags == 0) { + return NULL; + } + + if (flags & GPO_INFO_FLAG_SLOWLINK) + fstrcat(str, "GPO_INFO_FLAG_SLOWLINK "); + if (flags & GPO_INFO_FLAG_VERBOSE) + fstrcat(str, "GPO_INFO_FLAG_VERBOSE "); + if (flags & GPO_INFO_FLAG_SAFEMODE_BOOT) + fstrcat(str, "GPO_INFO_FLAG_SAFEMODE_BOOT "); + if (flags & GPO_INFO_FLAG_NOCHANGES) + fstrcat(str, "GPO_INFO_FLAG_NOCHANGES "); + if (flags & GPO_INFO_FLAG_MACHINE) + fstrcat(str, "GPO_INFO_FLAG_MACHINE "); + if (flags & GPO_INFO_FLAG_LOGRSOP_TRANSITION) + fstrcat(str, "GPO_INFO_FLAG_LOGRSOP_TRANSITION "); + if (flags & GPO_INFO_FLAG_LINKTRANSITION) + fstrcat(str, "GPO_INFO_FLAG_LINKTRANSITION "); + if (flags & GPO_INFO_FLAG_FORCED_REFRESH) + fstrcat(str, "GPO_INFO_FLAG_FORCED_REFRESH "); + if (flags & GPO_INFO_FLAG_BACKGROUND) + fstrcat(str, "GPO_INFO_FLAG_BACKGROUND "); + + return SMB_STRDUP(str); +} + +/**************************************************************** +****************************************************************/ + NTSTATUS gp_find_file(TALLOC_CTX *mem_ctx, uint32_t flags, const char *filename, |