summaryrefslogtreecommitdiff
path: root/source3/libgpo/gpo_util.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-29 16:03:23 +0100
committerGünther Deschner <gd@samba.org>2008-02-29 17:07:57 +0100
commit41efa5ca45f87435ad2a344010ead8e5e2fecbb0 (patch)
tree9afc057c189a602a0e1705f26dfdf5f1c81c7f7f /source3/libgpo/gpo_util.c
parentad38725f96c9a285718ea6a515d73508b8db3fca (diff)
downloadsamba-41efa5ca45f87435ad2a344010ead8e5e2fecbb0.tar.gz
samba-41efa5ca45f87435ad2a344010ead8e5e2fecbb0.tar.bz2
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.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/source3/libgpo/gpo_util.c b/source3/libgpo/gpo_util.c
index cd532da48b..bc6c35726c 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,